mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-13 23:20:05 +00:00
refactor: added isUri utility
This commit is contained in:
5
src/utils/isUri.ts
Normal file
5
src/utils/isUri.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
/**
|
||||
* Checks if string is in URI format
|
||||
* @param str string to check
|
||||
*/
|
||||
export const isUri = (str: string): boolean => /^\/folders\/folders\//.test(str)
|
||||
Reference in New Issue
Block a user