You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-28 05:03:59 +03:00
fix some lint
This commit is contained in:
@@ -20,7 +20,7 @@ limitations under the License.
|
||||
|
||||
function _matches_wildcard(actual_value, filter_value) {
|
||||
if (filter_value.endsWith("*")) {
|
||||
type_prefix = filter_value.slice(0, -1);
|
||||
var type_prefix = filter_value.slice(0, -1);
|
||||
return actual_value.substr(0, type_prefix.length) === type_prefix;
|
||||
}
|
||||
else {
|
||||
@@ -47,7 +47,7 @@ function FilterComponent(filter_json) {
|
||||
this.not_senders = filter_json.not_senders || [];
|
||||
|
||||
this.contains_url = filter_json.contains_url || null;
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks with the filter component matches the given event
|
||||
@@ -97,7 +97,7 @@ FilterComponent.prototype.checkFields =
|
||||
}
|
||||
});
|
||||
|
||||
contains_url_filter = this.filter_json.contains_url;
|
||||
var contains_url_filter = this.filter_json.contains_url;
|
||||
if (contains_url_filter !== undefined) {
|
||||
if (contains_url_filter !== contains_url) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user