This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
export function normalizeAssetUrl(url) {
|
||||
const normalized = url.trim();
|
||||
|
||||
if (/^(https?:|\/|#)/i.test(normalized)) {
|
||||
return normalized;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
Reference in New Issue
Block a user