Skip to content

Commit 9b0f251

Browse files
committed
fix: 暴力修复 Loon JQ 行尾注释截断
1 parent 4501d2e commit 9b0f251

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Rewrite-Parser.beta.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@ if (binaryInfo != null && binaryInfo.length > 0) {
572572
}
573573
}
574574
if (value) {
575+
value = value.replace(/\s+\/\//g, '//')
575576
rwbodyBox.push({ type: `http-${type}-jq`, regex, value })
576577
}
577578
} else if (isLooniOS) {

Rewrite-Parser.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@ if (binaryInfo != null && binaryInfo.length > 0) {
572572
}
573573
}
574574
if (value) {
575+
value = value.replace(/\s+\/\//g, '//')
575576
rwbodyBox.push({ type: `http-${type}-jq`, regex, value })
576577
}
577578
} else if (isLooniOS) {

0 commit comments

Comments
 (0)