Skip to content

Commit 4ab3596

Browse files
committed
fix(ie-compat): escape \ in regexp
1 parent 106674a commit 4ab3596

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ task :generate_ie_compat => :init do
157157
# generate a javascript closure that contains a function which will append the generated css
158158
# string as a stylesheet to the current html document
159159
jsString = "(function(){ \r\n" +
160-
" var jsUri = document.location.href.replace(/\\/[^\/]+(#.*)?$/, '/') + \r\n" +
160+
" var jsUri = document.location.href.replace(/\\/[^\\\/]+(#.*)?$/, '/') + \r\n" +
161161
" document.getElementById('ng-ie-compat').src,\r\n" +
162162
" css = '#{cssString}',\r\n" +
163163
" s = document.createElement('style'); \r\n" +

0 commit comments

Comments
 (0)