From 4ab359629548b777a69cfdb989a0249806696163 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Mon, 11 Jul 2011 14:33:11 -0700 Subject: fix(ie-compat): escape \ in regexp --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Rakefile') 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" + -- cgit v1.2.3