forked from Shinonome/dots-hyprland
move trimFileProtocol to file_utils.js
This commit is contained in:
@@ -89,10 +89,6 @@ function splitMarkdownBlocks(markdown) {
|
||||
return result;
|
||||
}
|
||||
|
||||
function trimFileProtocol(str) {
|
||||
return str.startsWith("file://") ? str.slice(7) : str;
|
||||
}
|
||||
|
||||
function escapeBackslashes(str) {
|
||||
return str.replace(/\\/g, '\\\\');
|
||||
}
|
||||
Reference in New Issue
Block a user