Index: lib/filterValidation.js |
diff --git a/lib/filterValidation.js b/lib/filterValidation.js |
index f5de14b7a75c670802a37fa676a10cb51c51dcd5..9252ac1ca4d81523ce85711b1bef928713842904 100644 |
--- a/lib/filterValidation.js |
+++ b/lib/filterValidation.js |
@@ -17,6 +17,8 @@ |
/** @module filterValidation */ |
+"use strict"; |
+ |
let {Filter, InvalidFilter, ElemHideBase} = require("filterClasses"); |
let {Utils} = require("utils"); |
@@ -63,7 +65,7 @@ FilterParsingError.prototype = { |
* |
* @return {string} |
*/ |
- toString: function() |
+ toString() |
{ |
let message; |
if (this.reason) |
@@ -115,7 +117,7 @@ let parseFilter = |
* @param {string} text |
* @return {ParsedFilter} |
*/ |
-exports.parseFilter = function(text) |
+exports.parseFilter = text => |
{ |
let filter = null; |
text = Filter.normalize(text); |
@@ -149,7 +151,7 @@ exports.parseFilter = function(text) |
* @param {string} text |
* @return {ParsedFilters} |
*/ |
-exports.parseFilters = function(text) |
+exports.parseFilters = text => |
{ |
let lines = text.split("\n"); |
let filters = []; |