Closed RebelusQuo closed 3 years ago
We failed at escaping special regular expression characters when constructing a regex instance. With escapeRegExp from lodash we save the day. Also, in Javascript, an empty string is already a falsy value so if statements can be simplified.
escapeRegExp
We failed at escaping special regular expression characters when constructing a regex instance. With
escapeRegExp
from lodash we save the day. Also, in Javascript, an empty string is already a falsy value so if statements can be simplified.