@vue/shared 3.5.38 → 3.5.40

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/shared v3.5.38
2
+ * @vue/shared v3.5.40
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -418,9 +418,14 @@ function escapeHtml(string) {
418
418
  }
419
419
  return lastIndex !== index ? html + str.slice(lastIndex, index) : html;
420
420
  }
421
- const commentStripRE = /^-?>|<!--|-->|--!>|<!-$/g;
421
+ const commentStripRE = /^(?:-?>)+|<!--|-->|--!>|<!-$/g;
422
422
  function escapeHtmlComment(src) {
423
- return src.replace(commentStripRE, "");
423
+ let prev;
424
+ do {
425
+ prev = src;
426
+ src = src.replace(commentStripRE, "");
427
+ } while (src !== prev);
428
+ return src;
424
429
  }
425
430
  const cssVarNameEscapeSymbolsRE = /[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;
426
431
  function getEscapedCssVarName(key, doubleEscape) {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/shared v3.5.38
2
+ * @vue/shared v3.5.40
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -418,9 +418,14 @@ function escapeHtml(string) {
418
418
  }
419
419
  return lastIndex !== index ? html + str.slice(lastIndex, index) : html;
420
420
  }
421
- const commentStripRE = /^-?>|<!--|-->|--!>|<!-$/g;
421
+ const commentStripRE = /^(?:-?>)+|<!--|-->|--!>|<!-$/g;
422
422
  function escapeHtmlComment(src) {
423
- return src.replace(commentStripRE, "");
423
+ let prev;
424
+ do {
425
+ prev = src;
426
+ src = src.replace(commentStripRE, "");
427
+ } while (src !== prev);
428
+ return src;
424
429
  }
425
430
  const cssVarNameEscapeSymbolsRE = /[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;
426
431
  function getEscapedCssVarName(key, doubleEscape) {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/shared v3.5.38
2
+ * @vue/shared v3.5.40
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -414,9 +414,14 @@ function escapeHtml(string) {
414
414
  }
415
415
  return lastIndex !== index ? html + str.slice(lastIndex, index) : html;
416
416
  }
417
- const commentStripRE = /^-?>|<!--|-->|--!>|<!-$/g;
417
+ const commentStripRE = /^(?:-?>)+|<!--|-->|--!>|<!-$/g;
418
418
  function escapeHtmlComment(src) {
419
- return src.replace(commentStripRE, "");
419
+ let prev;
420
+ do {
421
+ prev = src;
422
+ src = src.replace(commentStripRE, "");
423
+ } while (src !== prev);
424
+ return src;
420
425
  }
421
426
  const cssVarNameEscapeSymbolsRE = /[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;
422
427
  function getEscapedCssVarName(key, doubleEscape) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/shared",
3
- "version": "3.5.38",
3
+ "version": "3.5.40",
4
4
  "description": "internal utils shared across @vue packages",
5
5
  "main": "index.js",
6
6
  "module": "dist/shared.esm-bundler.js",