Missed colon

This commit is contained in:
Mel O'Hagan 2022-11-08 17:07:25 +00:00
parent 847fc9f83a
commit 4f1ecf6dc1
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,7 @@
const newError = {} const newError = {}
if (!external && fieldInfo.name?.startsWith("_")) { if (!external && fieldInfo.name?.startsWith("_")) {
newError.name = `Column name cannot start with an underscore.` newError.name = `Column name cannot start with an underscore.`
} else if (fieldInfo.name?.match(/[-!*+?^"{}()~/[\]\\]/g)) { } else if (fieldInfo.name?.match(/[-!*+?:^"{}()~/[\]\\]/g)) {
newError.name = `Illegal character; cannot be: + - ! ( ) { } [ ] ^ " ~ * ? : \\ /` newError.name = `Illegal character; cannot be: + - ! ( ) { } [ ] ^ " ~ * ? : \\ /`
} else if (PROHIBITED_COLUMN_NAMES.some(name => fieldInfo.name === name)) { } else if (PROHIBITED_COLUMN_NAMES.some(name => fieldInfo.name === name)) {
newError.name = `${PROHIBITED_COLUMN_NAMES.join( newError.name = `${PROHIBITED_COLUMN_NAMES.join(