From 4e48b3a736b22934b0241ac03f1717a9539202ba Mon Sep 17 00:00:00 2001 From: Karson Date: Fri, 6 Jun 2025 23:45:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96gruntfile=E5=9C=A8Win?= =?UTF-8?q?=E4=B8=8B=E7=9A=84=E5=85=BC=E5=AE=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gruntfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 69b14f3d..c281dcd2 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -36,7 +36,7 @@ module.exports = function (grunt) { var matches = content.match(pattern); if (matches) { if (type === 'js') { - var data = matches[1].replaceAll(/(urlArgs|baseUrl):(.*)\n/gi, ''); + var data = matches[1].replace(/(urlArgs|baseUrl):[^\r\n]*[\r\n]*/gi, ''); const parse = require('parse-config-file'), fs = require('fs'); require('jsonminify');