mirror of
https://github.com/aykhans/slash-e.git
synced 2025-07-25 22:34:24 +00:00
chore: add shortcut space routes
This commit is contained in:
@@ -10,6 +10,11 @@ export const absolutifyLink = (rel: string): string => {
|
||||
return anchor.href;
|
||||
};
|
||||
|
||||
export const isURL = (str: string): boolean => {
|
||||
const urlRegex = /^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/i;
|
||||
return urlRegex.test(str);
|
||||
};
|
||||
|
||||
export const releaseGuard = () => {
|
||||
return import.meta.env.MODE === "development";
|
||||
};
|
||||
|
Reference in New Issue
Block a user