aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorIgor Minar2011-07-11 14:33:11 -0700
committerIgor Minar2011-07-13 16:21:07 -0700
commit4ab359629548b777a69cfdb989a0249806696163 (patch)
treebfa890c9979d0944572200b2f967f099d07a443e /Rakefile
parent106674ac1e06a6d23b5ece3a05f5eefd0bdc2842 (diff)
downloadangular.js-4ab359629548b777a69cfdb989a0249806696163.tar.bz2
fix(ie-compat): escape \ in regexp
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 6f9a1729..6bb149fe 100644
--- a/Rakefile
+++ b/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" +