mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-07 20:40:05 +00:00
docs: fyxed typos and updated docs
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
/**
|
||||
* Checks if string is in URL format.
|
||||
* @param url - string to check.
|
||||
*/
|
||||
export const isUrl = (url: string): boolean => {
|
||||
const pattern = new RegExp(
|
||||
'^(http://|https://)[a-z0-9]+([-.]{1}[a-z0-9]+)*.[a-z]{2,5}(:[0-9]{1,5})?(/.*)?$',
|
||||
|
||||
Reference in New Issue
Block a user