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/postcss/lib/map-generator.js | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/node_modules/postcss/lib/map-generator.js b/node_modules/postcss/lib/map-generator.js
index 89069d3..df880ac 100644
--- a/node_modules/postcss/lib/map-generator.js
+++ b/node_modules/postcss/lib/map-generator.js
@@ -75,7 +75,15 @@
}
}
} else if (this.css) {
- this.css = this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm, '')
+ let startIndex
+ while ((startIndex = this.css.lastIndexOf('/*#')) !== -1) {
+ let endIndex = this.css.indexOf('*/', startIndex + 3)
+ if (endIndex === -1) break
+ while (startIndex > 0 && this.css[startIndex - 1] === '\n') {
+ startIndex--
+ }
+ this.css = this.css.slice(0, startIndex) + this.css.slice(endIndex + 2)
+ }
}
}
--
Gitblit v1.9.3