public
/
html-minifier.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec4227c
)
Add another test for ignoreCustomFragments
author
Juriy Zaytsev
<kangax@gmail.com>
Sun, 25 Oct 2015 15:38:32 +0000
(16:38 +0100)
committer
Juriy Zaytsev
<kangax@gmail.com>
Sun, 25 Oct 2015 15:38:32 +0000
(16:38 +0100)
tests/minifier.js
patch
|
blob
|
history
diff --git
a/tests/minifier.js
b/tests/minifier.js
index
8a87b6e
..
accf8bf
100644
(file)
--- a/
tests/minifier.js
+++ b/
tests/minifier.js
@@
-891,6
+891,16
@@
]
}), input);
+ input = '<div' +
+ '{{IF text}}' +
+ 'data-yashareDescription="{{shorted(text, 300)}}"' +
+ '{{END IF}}></div>';
+ equal(minify(input, {
+ ignoreCustomFragments: [
+ /\{\{[\s\S]*?\}\}/g
+ ],
+ caseSensitive: true
+ }), input);
});
test('bootstrap\'s span > button > span', function() {