|
|
@ -142,8 +142,8 @@ 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) |
|
|
|
// convert string to number since isURL only accepts string
|
|
|
|
// convert to string since isURL only accepts string
|
|
|
|
// and cell data value can be number and other types
|
|
|
|
// and cell data value can be number or any other types
|
|
|
|
return v && isURL(v.toString()) |
|
|
|
return v && isURL(v.toString()) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|