From 9bce51f651aad297ef9eb6df832bfdaf1de05d84 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期三, 22 四月 2026 14:27:54 +0800
Subject: [PATCH] 青岛推送

---
 node_modules/webpack/lib/util/conventions.js |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/node_modules/webpack/lib/util/conventions.js b/node_modules/webpack/lib/util/conventions.js
index f605178..0ac80aa 100644
--- a/node_modules/webpack/lib/util/conventions.js
+++ b/node_modules/webpack/lib/util/conventions.js
@@ -8,6 +8,7 @@
 /** @typedef {import("../../declarations/WebpackOptions").CssGeneratorExportsConvention} CssGeneratorExportsConvention */
 // Copy from css-loader
 /**
+ * Preserve camel case.
  * @param {string} string string
  * @returns {string} result
  */
@@ -20,7 +21,7 @@
 	for (let i = 0; i < result.length; i++) {
 		const character = result[i];
 
-		if (isLastCharLower && /[\p{Lu}]/u.test(character)) {
+		if (isLastCharLower && /\p{Lu}/u.test(character)) {
 			result = `${result.slice(0, i)}-${result.slice(i)}`;
 			isLastCharLower = false;
 			isLastLastCharUpper = isLastCharUpper;
@@ -29,7 +30,7 @@
 		} else if (
 			isLastCharUpper &&
 			isLastLastCharUpper &&
-			/[\p{Ll}]/u.test(character)
+			/\p{Ll}/u.test(character)
 		) {
 			result = `${result.slice(0, i - 1)}-${result.slice(i - 1)}`;
 			isLastLastCharUpper = isLastCharUpper;
@@ -51,6 +52,7 @@
 
 // Copy from css-loader
 /**
+ * Returns result.
  * @param {string} input input
  * @returns {string} result
  */
@@ -79,11 +81,13 @@
 };
 
 /**
+ * Returns results.
  * @param {string} input input
  * @param {CssGeneratorExportsConvention | undefined} convention convention
  * @returns {string[]} results
  */
 module.exports.cssExportConvention = (input, convention) => {
+	/** @type {Set<string>} */
 	const set = new Set();
 	if (typeof convention === "function") {
 		set.add(convention(input));
@@ -118,6 +122,7 @@
 
 // Copy from css-loader
 /**
+ * Returns result.
  * @param {string} input input
  * @returns {string} result
  */

--
Gitblit v1.9.3