File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ export abstract class Clause extends CypherASTNode {
109109 throw new Error ( `Cannot build root: ${ root . constructor . name } ` ) ;
110110 }
111111
112- private getEnv ( prefix ? : string , config : BuildConfig = { } ) : CypherEnvironment {
112+ private getEnv ( prefix : string | undefined , config : BuildConfig ) : CypherEnvironment {
113113 return new CypherEnvironment ( prefix , config ) ;
114114 }
115115
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ function escapeString(str: string): string {
6666}
6767
6868function normalizeString ( str : string ) : string {
69- return str . replaceAll ( / \\ u 0 0 6 0 / g , "`" ) ;
69+ return str . replaceAll ( " \\u0060" , "`" ) ;
7070}
7171
7272function needsEscape ( str : string ) : boolean {
Original file line number Diff line number Diff line change 1919
2020export function padBlock ( block : string , spaces = 4 ) : string {
2121 const paddingStr = " " . repeat ( spaces ) ;
22- const paddedNewLines = block . replaceAll ( / \n / g , `\n${ paddingStr } ` ) ;
22+ const paddedNewLines = block . replaceAll ( "\n" , `\n${ paddingStr } ` ) ;
2323 return `${ paddingStr } ${ paddedNewLines } ` ;
2424}
You can’t perform that action at this time.
0 commit comments