Browse Source

fix: handle backslash in string literal

pull/7268/head
Pranav C 11 months ago
parent
commit
d795ad7036
  1. 2
      packages/nocodb/tests/unit/rest/tests/formula.test.ts

2
packages/nocodb/tests/unit/rest/tests/formula.test.ts

@ -64,7 +64,7 @@ function formulaRegExpBased() {
expect(unfilteredRecords.length).to.equal(100); expect(unfilteredRecords.length).to.equal(100);
}); });
it.only('Type: REGEX_MATCH ', async () => { it('Type: REGEX_MATCH ', async () => {
const formulaList = [ const formulaList = [
`REGEX_MATCH("123-45-6789", "\\d{3}-\\d{2}-\\d{4}")`, `REGEX_MATCH("123-45-6789", "\\d{3}-\\d{2}-\\d{4}")`,
'REGEX_MATCH("123-45-6789", "\\d{3}-\\d{2}-\\d{4}")', 'REGEX_MATCH("123-45-6789", "\\d{3}-\\d{2}-\\d{4}")',

Loading…
Cancel
Save