forked from Shinonome/dots-hyprland
add jsdoc to file_utils.js
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
/**
|
||||
* Trims fthe File protocol off the input string
|
||||
* @param {string} str
|
||||
* @returns {string}
|
||||
*/
|
||||
function trimFileProtocol(str) {
|
||||
return str.startsWith("file://") ? str.slice(7) : str;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user