blob: f62f8be86acc54103a9eacdcb508c7dbb2fa65dc (
plain)
1
2
3
4
5
6
7
8
9
|
!(function (e) {
for (
var r =
'(?:[^\\\\()[\\]{}"\'/]|<string>|/(?![*/])|<comment>|\\(<expr>*\\)|\\[<expr>*\\]|\\{<expr>*\\}|\\\\[^])'
.replace(/<string>/g, function () {
return '"(?:\\\\.|[^\\\\"\r\n])*"|\'(?:\\\\.|[^\\\\\'\r\n])*\'';
})
.replace(/<comment>/g, function () {
return '//.*(?!.)|/\\*(?:[^*]|\\*(?!/))*\\*/';
}),
t = 0;
t < 2;
t++
)
r = r.replace(/<expr>/g, function () {
return r;
|