diff options
| author | Igor Minar | 2011-07-11 14:33:11 -0700 |
|---|---|---|
| committer | Igor Minar | 2011-07-13 16:21:07 -0700 |
| commit | 4ab359629548b777a69cfdb989a0249806696163 (patch) | |
| tree | bfa890c9979d0944572200b2f967f099d07a443e /Rakefile | |
| parent | 106674ac1e06a6d23b5ece3a05f5eefd0bdc2842 (diff) | |
| download | angular.js-4ab359629548b777a69cfdb989a0249806696163.tar.bz2 | |
fix(ie-compat): escape \ in regexp
Diffstat (limited to 'Rakefile')
| -rw-r--r-- | Rakefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" + |
