Skip to content

Commit

Permalink
Update transform_files.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaMan123 committed Oct 31, 2022
1 parent 4111587 commit 06a12b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/transform_files.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,8 @@ function transformClass(type, raw, options = {}) {
}(${args
.map((arg) => {
const out = printASTNode(value, arg);
out.replace(/[^\(|\)]/gm, '').length % 2 === 1
? out.splice(0, -1)
return out.replace(/[^\(|\)]/gm, '').length % 2 === 1
? out.slice(0, -1)
: out;
})
.join(', ')})`;
Expand Down

0 comments on commit 06a12b0

Please sign in to comment.