Browse Source

fix: avoid conversion support for literal months (#9044)

Co-authored-by: DarkPhoenix2704 <anbarasun123@gmail.com>
pull/9056/head
Raju Udava 4 months ago committed by GitHub
parent
commit
f67b3ca10d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      packages/nocodb/src/db/sql-client/lib/pg/constants.ts

8
packages/nocodb/src/db/sql-client/lib/pg/constants.ts

@ -1,4 +1,4 @@
const MONTHS = [
/*const MONTHS = [
'January',
'February',
'March',
@ -17,16 +17,16 @@ const MONTHS_SHORT_LOWER = MONTHS_SHORT.map((m) => m.toLowerCase());
const MONTHS_SHORT_UPPER = MONTHS_SHORT.map((m) => m.toUpperCase());
const MONTHS_LOWER = MONTHS.map((m) => m.toLowerCase());
const MONTHS_UPPER = MONTHS.map((m) => m.toUpperCase());
const MONTHS_UPPER = MONTHS.map((m) => m.toUpperCase());*/
const MONTH_FORMATS = {
MM: '[0-9]{1,2}',
MM: '[0-9]{1,2}' /*
Mon: '(' + MONTHS_SHORT.join('|') + ')',
MON: '(' + MONTHS_SHORT_UPPER.join('|') + ')',
mon: '(' + MONTHS_SHORT_LOWER.join('|') + ')',
Month: '(' + MONTHS.join('|') + ')',
MONTH: '(' + MONTHS_UPPER.join('|') + ')',
month: '(' + MONTHS_LOWER.join('|') + ')',
month: '(' + MONTHS_LOWER.join('|') + ')',*/,
};
/*
* Map of date formats to their respective regex patterns.

Loading…
Cancel
Save