1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-19 16:42:09 +03:00

Cleanup jsdoc. Allow extra query params to be set on requests (for ASes).

This commit is contained in:
Kegan Dougal
2015-07-28 10:57:05 +01:00
parent 14a7ff3e04
commit 9993e5dbed
5 changed files with 43 additions and 19 deletions

View File

@@ -1,9 +1,13 @@
/**
* @module pushprocessor
*/
/**
* Construct a Push Processor.
* @constructor
* @param {Object} client The Matrix client object to use
*/
module.exports = function(client) {
function PushProcessor(client) {
var escapeRegExp = function(string) {
return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
};
@@ -237,5 +241,7 @@ module.exports = function(client) {
this.actionsForEvent = function(ev) {
return pushActionsForEventAndRulesets(ev, client.pushRules);
};
};
}
/** The PushProcessor class. */
module.exports = PushProcessor;