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
@@ -0,0 +1,4 @@
function trimFileProtocol(str) {
return str.startsWith("file://") ? str.slice(7) : str;
}