We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98c9b8a commit dcde3b0Copy full SHA for dcde3b0
2 files changed
lib/index.js
@@ -12,7 +12,7 @@ var _ = require('lodash'),
12
HtmlDiff.prototype.tokenize = function (html) {
13
html = modifyHtmlAccordingToOptions(html, this.options);
14
15
- return _.filter(html.split(/({{.+?[^\\]}}(?!})|[{}\(\)=:;,<>"'\[\]\/]|\s+)/));
+ return _.filter(html.split(/({{.+?}}(?!})|[{}\(\)=:;,<>"'\[\]\/]|\s+)/));
16
};
17
18
/**
lib/utils/mask.js
@@ -4,7 +4,7 @@
4
*
5
* {{RegExp}}
6
*/
7
-var MASK_REGEXP = /(.*){{(.+[^\\])}}(?!})(.*)/,
+var MASK_REGEXP = /(.*){{(.+)}}(?!})(.*)/,
8
specialСhars = /([^A-Za-zА-Яа-я0-9_\-\s])/g;
9
10
0 commit comments