MCPcopy Create free account
hub / github.com/alignoth/alignoth / W$

Function W$

resources/vega.min.js:27165–27237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27163 );
27164 }
27165 function W$() {
27166 var t, e, n, r;
27167 return (
27168 (VS = null),
27169 R$(),
27170 (t = YS),
27171 (e = (function () {
27172 var t, e, n, r;
27173 for (
27174 C$(
27175 "/" === (t = HS[YS]),
27176 "Regular expression literal must start with a slash",
27177 ),
27178 e = HS[YS++],
27179 n = !1,
27180 r = !1;
27181 YS < GS;
27182
27183 )
27184 if (((e += t = HS[YS++]), "\\" === t))
27185 (B$((t = HS[YS++]).charCodeAt(0)) && tT({}, b$), (e += t));
27186 else if (B$(t.charCodeAt(0))) tT({}, b$);
27187 else if (n) "]" === t && (n = !1);
27188 else {
27189 if ("/" === t) {
27190 r = !0;
27191 break;
27192 }
27193 "[" === t && (n = !0);
27194 }
27195 return (
27196 r || tT({}, b$),
27197 { value: e.substr(1, e.length - 2), literal: e }
27198 );
27199 })()),
27200 (n = (function () {
27201 var t, e, n;
27202 for (e = "", n = ""; YS < GS && N$((t = HS[YS]).charCodeAt(0)); )
27203 (++YS, "\\" === t && YS < GS ? tT({}, p$, A$) : ((n += t), (e += t)));
27204 return (
27205 n.search(/[^gimuy]/g) >= 0 && tT({}, x$, n),
27206 { value: n, literal: e }
27207 );
27208 })()),
27209 (r = (function (t, e) {
27210 let n = t;
27211 e.includes("u") &&
27212 (n = n
27213 .replace(/\\u\{([0-9a-fA-F]+)\}/g, (t, e) => {
27214 if (parseInt(e, 16) <= 1114111) return "x";
27215 tT({}, x$);
27216 })
27217 .replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, "x"));
27218 try {
27219 new RegExp(n);
27220 } catch (t) {
27221 tT({}, x$);
27222 }

Callers 1

cTFunction · 0.85

Calls 5

R$Function · 0.85
C$Function · 0.85
B$Function · 0.85
tTFunction · 0.85
N$Function · 0.85

Tested by

no test coverage detected