Browse Source

fix(sdk): use backticks

pull/5316/head
Wing-Kam Wong 2 years ago
parent
commit
9e1e50f095
  1. 6
      packages/nocodb-sdk/src/lib/formulaHelpers.ts

6
packages/nocodb-sdk/src/lib/formulaHelpers.ts

@ -218,10 +218,10 @@ function escapeLiteral(v: string) {
return (
v
// replace \ to \\
.replace(/\\/g, '\\\\')
.replace(/\\/g, `\\\\`)
// replace " to \"
.replace(/"/g, '\\"')
.replace(/"/g, `\\"`)
// replace ' to \'
.replace(/'/g, '\\"')
.replace(/'/g, `\\'`)
);
}

Loading…
Cancel
Save