Skip to content

Commit 2dc9cb4

Browse files
committed
Safe Regex Util Function minor Code Update
1 parent 34e7e82 commit 2dc9cb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/safe-regex.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const safe = require('safe-regex')
22

33
const safeRegexCheck = (document: any, invalidRegex: any, tableData: any, type: string) => {
44
const beforeCount = invalidRegex.length
5-
function checkSchemaFieldRegex(schema: any, currentPath = '', nested: boolean) {
5+
function checkSchemaFieldRegex(schema: any, currentPath: string, nested: boolean) {
66
let newPath = ''
77
function path(currentPath: string, uid: string) {
88
return currentPath.trim() === '' ? uid : [currentPath, uid].join('.')
@@ -32,7 +32,7 @@ const safeRegexCheck = (document: any, invalidRegex: any, tableData: any, type:
3232
'Module': type,
3333
'Title': document.title,
3434
'UID': document.uid,
35-
'Field Name': field.display_name,
35+
'Field Title': field.display_name,
3636
'Field UID': field.uid,
3737
'Field Path': newPath,
3838
'Invalid Regex': field.format,

0 commit comments

Comments
 (0)