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

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.
@@ -2188,6 +2188,9 @@ var SENTINEL, RISKY_STRING_CONTENT, isIdentChar = (c) => /[A-Za-z0-9_$]/.test(c)
2188
2188
  const endOfInterp = (start) => {
2189
2189
  let j = start;
2190
2190
  let depth = 1;
2191
+ let ipChar = "";
2192
+ let ipWord = "";
2193
+ let ipSpace = false;
2191
2194
  while (j < n && depth > 0) {
2192
2195
  const c = src[j];
2193
2196
  if (c === "\\") {
@@ -2196,10 +2199,16 @@ var SENTINEL, RISKY_STRING_CONTENT, isIdentChar = (c) => /[A-Za-z0-9_$]/.test(c)
2196
2199
  }
2197
2200
  if (c === "`") {
2198
2201
  j = endOfTemplate(j);
2202
+ ipChar = ")";
2203
+ ipWord = "";
2204
+ ipSpace = false;
2199
2205
  continue;
2200
2206
  }
2201
2207
  if (c === '"' || c === "'") {
2202
2208
  j = endOfString(j);
2209
+ ipChar = '"';
2210
+ ipWord = "";
2211
+ ipSpace = false;
2203
2212
  continue;
2204
2213
  }
2205
2214
  if (c === "/" && src[j + 1] === "/") {
@@ -2213,11 +2222,33 @@ var SENTINEL, RISKY_STRING_CONTENT, isIdentChar = (c) => /[A-Za-z0-9_$]/.test(c)
2213
2222
  j = e < 0 ? n : e + 2;
2214
2223
  continue;
2215
2224
  }
2225
+ if (c === "/" && (ipChar === "" || REGEX_OK_AFTER_CHAR.has(ipChar) || REGEX_OK_AFTER_WORD.has(ipWord))) {
2226
+ const e = endOfRegex(j);
2227
+ if (e > 0) {
2228
+ j = e;
2229
+ ipChar = ")";
2230
+ ipWord = "";
2231
+ ipSpace = false;
2232
+ continue;
2233
+ }
2234
+ }
2216
2235
  if (c === "{")
2217
2236
  depth++;
2218
2237
  else if (c === "}")
2219
2238
  depth--;
2220
2239
  j++;
2240
+ if (c === " " || c === "\t" || c === "\r" || c === `
2241
+ `) {
2242
+ ipSpace = true;
2243
+ continue;
2244
+ }
2245
+ if (isIdentChar(c)) {
2246
+ ipWord = isIdentChar(ipChar) && !ipSpace ? ipWord + c : c;
2247
+ } else {
2248
+ ipWord = "";
2249
+ }
2250
+ ipChar = c;
2251
+ ipSpace = false;
2221
2252
  }
2222
2253
  return j;
2223
2254
  };
@@ -4581,5 +4612,5 @@ export {
4581
4612
  Island
4582
4613
  };
4583
4614
 
4584
- //# debugId=4834783E445009DF64756E2164756E21
4615
+ //# debugId=0230569758C05B8464756E2164756E21
4585
4616
  //# sourceMappingURL=index.js.map