@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.
@@ -1188,6 +1188,9 @@ var SENTINEL, RISKY_STRING_CONTENT, isIdentChar = (c) => /[A-Za-z0-9_$]/.test(c)
1188
1188
  const endOfInterp = (start) => {
1189
1189
  let j = start;
1190
1190
  let depth = 1;
1191
+ let ipChar = "";
1192
+ let ipWord = "";
1193
+ let ipSpace = false;
1191
1194
  while (j < n && depth > 0) {
1192
1195
  const c = src[j];
1193
1196
  if (c === "\\") {
@@ -1196,10 +1199,16 @@ var SENTINEL, RISKY_STRING_CONTENT, isIdentChar = (c) => /[A-Za-z0-9_$]/.test(c)
1196
1199
  }
1197
1200
  if (c === "`") {
1198
1201
  j = endOfTemplate(j);
1202
+ ipChar = ")";
1203
+ ipWord = "";
1204
+ ipSpace = false;
1199
1205
  continue;
1200
1206
  }
1201
1207
  if (c === '"' || c === "'") {
1202
1208
  j = endOfString(j);
1209
+ ipChar = '"';
1210
+ ipWord = "";
1211
+ ipSpace = false;
1203
1212
  continue;
1204
1213
  }
1205
1214
  if (c === "/" && src[j + 1] === "/") {
@@ -1213,11 +1222,33 @@ var SENTINEL, RISKY_STRING_CONTENT, isIdentChar = (c) => /[A-Za-z0-9_$]/.test(c)
1213
1222
  j = e < 0 ? n : e + 2;
1214
1223
  continue;
1215
1224
  }
1225
+ if (c === "/" && (ipChar === "" || REGEX_OK_AFTER_CHAR.has(ipChar) || REGEX_OK_AFTER_WORD.has(ipWord))) {
1226
+ const e = endOfRegex(j);
1227
+ if (e > 0) {
1228
+ j = e;
1229
+ ipChar = ")";
1230
+ ipWord = "";
1231
+ ipSpace = false;
1232
+ continue;
1233
+ }
1234
+ }
1216
1235
  if (c === "{")
1217
1236
  depth++;
1218
1237
  else if (c === "}")
1219
1238
  depth--;
1220
1239
  j++;
1240
+ if (c === " " || c === "\t" || c === "\r" || c === `
1241
+ `) {
1242
+ ipSpace = true;
1243
+ continue;
1244
+ }
1245
+ if (isIdentChar(c)) {
1246
+ ipWord = isIdentChar(ipChar) && !ipSpace ? ipWord + c : c;
1247
+ } else {
1248
+ ipWord = "";
1249
+ }
1250
+ ipChar = c;
1251
+ ipSpace = false;
1221
1252
  }
1222
1253
  return j;
1223
1254
  };
@@ -6748,5 +6779,5 @@ export {
6748
6779
  ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER
6749
6780
  };
6750
6781
 
6751
- //# debugId=953969A5405EA9B364756E2164756E21
6782
+ //# debugId=A700872D32FA733D64756E2164756E21
6752
6783
  //# sourceMappingURL=server.js.map