mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-08 00:09:27 -05:00
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