Skip to content

Commit e4ded7a

Browse files
committed
Fixed linting.
1 parent ea3c5a2 commit e4ded7a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/processScript/postprocess.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export const postprocess = (code: string, uniqueId: string, autocomplete: string | undefined): string => code
22
.replace(/^function\s*[\w$]+\(/, `function(`)
3-
.replace(/(^.+{)/, `$1${autocomplete ? `//${autocomplete}` : ""}`)
3+
.replace(/(^.+\{)/, `$1${autocomplete ? `//${autocomplete}` : ``}`)
44
.replace(new RegExp(`\\$${uniqueId}\\$\\\\(?:\\\\)?\\$SC_DOLLAR\\$`, `g`), `S\\C$`)
55
.replace(new RegExp(`\\$${uniqueId}\\$\\\\(?:\\\\)?\\$DB_DOLLAR\\$`, `g`), `D\\B$`)
66
.replace(new RegExp(`\\$${uniqueId}\\$\\\\(?:\\\\)?\\$D\\$`, `g`), `_\\_D_S`)

0 commit comments

Comments
 (0)