mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-10 03:11:07 +00:00
fix code bug (#6071)
This commit is contained in:
@@ -1626,4 +1626,9 @@ export const Utils = {
|
||||
history.replaceState(null, '', origin + pathname + newSearch);
|
||||
},
|
||||
|
||||
isRelativePath(url) {
|
||||
let RgExp = new RegExp('^(?:[a-z]+:)?//', 'i');
|
||||
return !RgExp.test(url);
|
||||
}
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user