@absolutejs/absolute 0.19.0-beta.1107 → 0.19.0-beta.1108

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vue/index.js CHANGED
@@ -2428,6 +2428,9 @@ var SENTINEL, RISKY_STRING_CONTENT, isIdentChar = (c) => /[A-Za-z0-9_$]/.test(c)
2428
2428
  const endOfInterp = (start) => {
2429
2429
  let j = start;
2430
2430
  let depth = 1;
2431
+ let ipChar = "";
2432
+ let ipWord = "";
2433
+ let ipSpace = false;
2431
2434
  while (j < n && depth > 0) {
2432
2435
  const c = src[j];
2433
2436
  if (c === "\\") {
@@ -2436,10 +2439,16 @@ var SENTINEL, RISKY_STRING_CONTENT, isIdentChar = (c) => /[A-Za-z0-9_$]/.test(c)
2436
2439
  }
2437
2440
  if (c === "`") {
2438
2441
  j = endOfTemplate(j);
2442
+ ipChar = ")";
2443
+ ipWord = "";
2444
+ ipSpace = false;
2439
2445
  continue;
2440
2446
  }
2441
2447
  if (c === '"' || c === "'") {
2442
2448
  j = endOfString(j);
2449
+ ipChar = '"';
2450
+ ipWord = "";
2451
+ ipSpace = false;
2443
2452
  continue;
2444
2453
  }
2445
2454
  if (c === "/" && src[j + 1] === "/") {
@@ -2453,11 +2462,33 @@ var SENTINEL, RISKY_STRING_CONTENT, isIdentChar = (c) => /[A-Za-z0-9_$]/.test(c)
2453
2462
  j = e < 0 ? n : e + 2;
2454
2463
  continue;
2455
2464
  }
2465
+ if (c === "/" && (ipChar === "" || REGEX_OK_AFTER_CHAR.has(ipChar) || REGEX_OK_AFTER_WORD.has(ipWord))) {
2466
+ const e = endOfRegex(j);
2467
+ if (e > 0) {
2468
+ j = e;
2469
+ ipChar = ")";
2470
+ ipWord = "";
2471
+ ipSpace = false;
2472
+ continue;
2473
+ }
2474
+ }
2456
2475
  if (c === "{")
2457
2476
  depth++;
2458
2477
  else if (c === "}")
2459
2478
  depth--;
2460
2479
  j++;
2480
+ if (c === " " || c === "\t" || c === "\r" || c === `
2481
+ `) {
2482
+ ipSpace = true;
2483
+ continue;
2484
+ }
2485
+ if (isIdentChar(c)) {
2486
+ ipWord = isIdentChar(ipChar) && !ipSpace ? ipWord + c : c;
2487
+ } else {
2488
+ ipWord = "";
2489
+ }
2490
+ ipChar = c;
2491
+ ipSpace = false;
2461
2492
  }
2462
2493
  return j;
2463
2494
  };
@@ -5661,5 +5692,5 @@ export {
5661
5692
  Image
5662
5693
  };
5663
5694
 
5664
- //# debugId=20AE2A80A3073D7064756E2164756E21
5695
+ //# debugId=B9A1F3D2F5BAB38B64756E2164756E21
5665
5696
  //# sourceMappingURL=index.js.map