move trimFileProtocol to file_utils.js

This commit is contained in:
end-4
2025-05-10 21:22:32 +02:00
parent bce69c77c7
commit 8031625af7
4 changed files with 8 additions and 6 deletions
@@ -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, '\\\\');
}