Skip to content

Commit

Permalink
To identify coorect end of the regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Chhandak.Barua authored and Chhandak.Barua committed Mar 7, 2023
1 parent 0a9c557 commit 772984b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/Resources/jshrink/input/regex_end_string.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
escapeCssMeta: function( string ) {
return (string || '').replace( /([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g, "\\$1" );
},
1 change: 1 addition & 0 deletions tests/Resources/jshrink/output/regex_end_string.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
escapeCssMeta:function(string){return(string||'').replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1");},

0 comments on commit 772984b

Please sign in to comment.