Tweak regexp in build/post-compile.js used to repair whitespace detection.

Former-commit-id: 7bfe6a6bc0b5e2258c56588d8aacad1e5176d8ba
This commit is contained in:
John-David Dalton
2013-05-24 09:10:45 -07:00
parent 8f7be71905
commit 90fe45c52d

View File

@@ -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"'