Skip to content

Commit dcde3b0

Browse files
committed
Update handling of masks
1 parent 98c9b8a commit dcde3b0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var _ = require('lodash'),
1212
HtmlDiff.prototype.tokenize = function (html) {
1313
html = modifyHtmlAccordingToOptions(html, this.options);
1414

15-
return _.filter(html.split(/({{.+?[^\\]}}(?!})|[{}\(\)=:;,<>"'\[\]\/]|\s+)/));
15+
return _.filter(html.split(/({{.+?}}(?!})|[{}\(\)=:;,<>"'\[\]\/]|\s+)/));
1616
};
1717

1818
/**

lib/utils/mask.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* {{RegExp}}
66
*/
7-
var MASK_REGEXP = /(.*){{(.+[^\\])}}(?!})(.*)/,
7+
var MASK_REGEXP = /(.*){{(.+)}}(?!})(.*)/,
88
specialСhars = /([^A-Za-zА-Яа-я0-9_\-\s])/g;
99

1010
/**

0 commit comments

Comments
 (0)