(str: string)
| 505 | } |
| 506 | |
| 507 | export function isUrl(str: string): boolean { |
| 508 | if (/ID[1-9]+/.test(str)) return false; |
| 509 | return /^((https?|ftp):\/\/)?([\w\-]+\.)+([a-zA-Z]){2,5}((\/[\w\-_.]+)*\/?)?(\?\S*)?(#[\w\-]+)?$/.test( |
| 510 | str, |
| 511 | ); |
| 512 | } |
| 513 | |
| 514 | const dateFormats = [ |
| 515 | "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", |
no outgoing calls
no test coverage detected