Skip to content

Commit 11c9a99

Browse files
committed
fix: change replaceAll to replace for nodejs 14.
1 parent 58e3c61 commit 11c9a99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export const getDeclarationSyntax = (tokens: Token[], targetKeyName: 'data' | 'p
6565
}
6666

6767
// change quotation to double for JSON.
68-
result += value.replaceAll('\'', '"');
68+
result += value.replace(/'/ug, '"');
6969

7070
// put right-hand quotation for JSON.
7171
if (needQuoting) {

0 commit comments

Comments
 (0)