mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-04-05 23:51:03 +00:00
fix(ie-compat): escape \ in regexp
This commit is contained in:
parent
106674ac1e
commit
4ab3596295
1 changed files with 1 additions and 1 deletions
2
Rakefile
2
Rakefile
|
|
@ -157,7 +157,7 @@ task :generate_ie_compat => :init do
|
|||
# generate a javascript closure that contains a function which will append the generated css
|
||||
# string as a stylesheet to the current html document
|
||||
jsString = "(function(){ \r\n" +
|
||||
" var jsUri = document.location.href.replace(/\\/[^\/]+(#.*)?$/, '/') + \r\n" +
|
||||
" var jsUri = document.location.href.replace(/\\/[^\\\/]+(#.*)?$/, '/') + \r\n" +
|
||||
" document.getElementById('ng-ie-compat').src,\r\n" +
|
||||
" css = '#{cssString}',\r\n" +
|
||||
" s = document.createElement('style'); \r\n" +
|
||||
|
|
|
|||
Loading…
Reference in a new issue