Browse Source

fix: drop unnecessary regex modifier

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/4156/head
mertmit 2 years ago
parent
commit
0350954a5f
  1. 4
      packages/nocodb/src/lib/meta/api/sync/helpers/EntityMap.ts

4
packages/nocodb/src/lib/meta/api/sync/helpers/EntityMap.ts

@ -189,11 +189,11 @@ function processResponseRow(res: any) {
}
function processKey(key) {
return key.replace(/'/gi, "''").replace(/[A-Z]/g, (match) => `_${match}`);
return key.replace(/'/g, "''").replace(/[A-Z]/g, (match) => `_${match}`);
}
function revertKey(key) {
return key.replace(/''/gi, "'").replace(/_[A-Z]/g, (match) => match[1]);
return key.replace(/''/g, "'").replace(/_[A-Z]/g, (match) => match[1]);
}
export default EntityMap;

Loading…
Cancel
Save