(url)
| 45 | } |
| 46 | |
| 47 | const isUrl = (url) => { |
| 48 | return url.match( |
| 49 | new RegExp( |
| 50 | /https?:\/\/(www\.)?[-a-zA-Z0-9@:%.+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%+.~#?&/=]*)/, |
| 51 | 'gi' |
| 52 | ) |
| 53 | ) |
| 54 | } |
| 55 | |
| 56 | const Json = (string) => { |
| 57 | return JSON.stringify(string, null, 2) |
nothing calls this directly
no outgoing calls
no test coverage detected