File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,11 +4,12 @@ const escape = {
44 '>' : '>' ,
55 '"' : '"' ,
66 "'" : ''' ,
7- '`' : '`'
7+ '`' : '`' ,
8+ '=' : '='
89} ;
910
10- const badChars = / [ & < > " ' ` ] / g,
11- possible = / [ & < > " ' ` ] / ;
11+ const badChars = / [ & < > " ' ` = ] / g,
12+ possible = / [ & < > " ' ` = ] / ;
1213
1314function escapeChar ( chr ) {
1415 return escape [ chr ] ;
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ describe('utils', function() {
1818 describe ( '#escapeExpression' , function ( ) {
1919 it ( 'shouhld escape html' , function ( ) {
2020 equals ( Handlebars . Utils . escapeExpression ( 'foo<&"\'>' ) , 'foo<&"'>' ) ;
21+ equals ( Handlebars . Utils . escapeExpression ( 'foo=' ) , 'foo=' ) ;
2122 } ) ;
2223 it ( 'should not escape SafeString' , function ( ) {
2324 var string = new Handlebars . SafeString ( 'foo<&"\'>' ) ;
You can’t perform that action at this time.
0 commit comments