Skip to content

Commit 7ff66d0

Browse files
committed
fix: 修复 Stash 的 transparent 重写\nFixes #49
1 parent 8ccaedf commit 7ff66d0

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

Rewrite-Parser.beta.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,15 @@ if (binaryInfo != null && binaryInfo.length > 0) {
12801280
noteK2 = '# '
12811281
}
12821282
URLRewrite.push(
1283-
mark + noteK4 + '- >-' + noteKn6 + rwptn + ' ' + rwvalue + ' ' + rwtype.replace(/-video|-tinygif/, '-img')
1283+
mark +
1284+
noteK4 +
1285+
'- >-' +
1286+
noteKn6 +
1287+
rwptn +
1288+
' ' +
1289+
rwvalue +
1290+
' ' +
1291+
rwtype.replace(/-video|-tinygif/, '-img').replace(/^header$/, 'transparent')
12841292
)
12851293
break
12861294

Rewrite-Parser.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,15 @@ if (binaryInfo != null && binaryInfo.length > 0) {
12801280
noteK2 = '# '
12811281
}
12821282
URLRewrite.push(
1283-
mark + noteK4 + '- >-' + noteKn6 + rwptn + ' ' + rwvalue + ' ' + rwtype.replace(/-video|-tinygif/, '-img')
1283+
mark +
1284+
noteK4 +
1285+
'- >-' +
1286+
noteKn6 +
1287+
rwptn +
1288+
' ' +
1289+
rwvalue +
1290+
' ' +
1291+
rwtype.replace(/-video|-tinygif/, '-img').replace(/^header$/, 'transparent')
12841292
)
12851293
break
12861294

0 commit comments

Comments
 (0)