Skip to content

Commit

Permalink
fix transform
Browse files Browse the repository at this point in the history
  • Loading branch information
GooseOb committed Dec 1, 2024
1 parent 8fef98a commit 48f02f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion build-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ export default {
userscript: {
logErrors: !process.argv.includes('--build'),
transform: (code: string) =>
code.replace(/\["([^"]+)"]:/g, '$1:').replace(/\["([^"]+)"]/g, '.$1'),
code
.replace(/\["([^"]+)"]:/g, '$1:')
.replace(/(\S)\["([^"]+)"]/g, '$1.$2'),
},
} satisfies BuildUserscriptConfig;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "yt-defaulter",
"author": "GooseOb",
"version": "1.11.0-alpha.0",
"version": "1.11.0-alpha.1",
"repository": {
"type": "git",
"url": "git+https://github.com/GooseOb/YT-Defaulter.git"
Expand Down

0 comments on commit 48f02f5

Please sign in to comment.