mirror of
https://github.com/excalidraw/excalidraw.git
synced 2026-11-21 21:44:59 +03:00
fix sequence of events
This commit is contained in:
1 parent
dd8a7d41e2
commit
347177f873
1 file changed
+1
-1
+1
-1
@@ -1,10 +1,10 @@
|
||||
import { sanitizeUrl } from "@braintree/sanitize-url";
|
||||
|
||||
export const normalizeLink = (link: string) => {
|
||||
link = link.trim();
|
||||
if (!link) {
|
||||
return link;
|
||||
}
|
||||
link = link.trim();
|
||||
return sanitizeUrl(link);
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user