|
|
@ -142,7 +142,9 @@ export const isEmailType = (colData: [], col?: number) => |
|
|
|
export const isUrlType = (colData: [], col?: number) => |
|
|
|
export const isUrlType = (colData: [], col?: number) => |
|
|
|
colData.some((r: any) => { |
|
|
|
colData.some((r: any) => { |
|
|
|
const v = getColVal(r, col) |
|
|
|
const v = getColVal(r, col) |
|
|
|
return v && isURL(v) |
|
|
|
// convert string to number since isURL only accepts string
|
|
|
|
|
|
|
|
// and cell data value can be number and other types
|
|
|
|
|
|
|
|
return v && isURL(v.toString()) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
export const getColumnUIDTAndMetas = (colData: [], defaultType: string) => { |
|
|
|
export const getColumnUIDTAndMetas = (colData: [], defaultType: string) => { |
|
|
|