From 90fe45c52d693191b0a216b8bff0860d51309a05 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 24 May 2013 09:10:45 -0700 Subject: [PATCH] Tweak regexp in build/post-compile.js used to repair whitespace detection. Former-commit-id: 7bfe6a6bc0b5e2258c56588d8aacad1e5176d8ba --- build/post-compile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/post-compile.js b/build/post-compile.js index 2d3796393..310578134 100644 --- a/build/post-compile.js +++ b/build/post-compile.js @@ -31,7 +31,7 @@ source = source .replace(/(document[^&]+&&)\s*(?:\w+|!\d)/, '$1!({toString:0}+"")') .replace(/"\t"/g, '"\\t"') - .replace(/"[^"]*?\\u180e[^"]*?"/g, + .replace(/"[^"]*?\\f[^"]*?"/g, '" \\t\\x0B\\f\\xa0\\ufeff' + '\\n\\r\\u2028\\u2029' + '\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000"'