blob: 758950ded61e2016f9b66fda72153792b1880b52 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
/**
* Trims the File protocol off the input string
* @param {string} str
* @returns {string}
*/
function trimFileProtocol(str) {
return str.startsWith("file://") ? str.slice(7) : str;
}
|