mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-26 10:49:57 +02:00
fix sequence of events
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
import { sanitizeUrl } from "@braintree/sanitize-url";
|
import { sanitizeUrl } from "@braintree/sanitize-url";
|
||||||
|
|
||||||
export const normalizeLink = (link: string) => {
|
export const normalizeLink = (link: string) => {
|
||||||
link = link.trim();
|
|
||||||
if (!link) {
|
if (!link) {
|
||||||
return link;
|
return link;
|
||||||
}
|
}
|
||||||
|
link = link.trim();
|
||||||
return sanitizeUrl(link);
|
return sanitizeUrl(link);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user