chore(app): cleanup
This commit is contained in:
@@ -538,11 +538,7 @@ const toOpenVariant = (icon: IconName): IconName => {
|
|||||||
return icon
|
return icon
|
||||||
}
|
}
|
||||||
|
|
||||||
const basenameOf = (p: string) =>
|
const basenameOf = (p: string) => p.split("\\").join("/").split("/").filter(Boolean).pop() ?? ""
|
||||||
p
|
|
||||||
.replace(/[/\\]+$/, "")
|
|
||||||
.split(/[\\/]/)
|
|
||||||
.pop() ?? ""
|
|
||||||
|
|
||||||
const folderNameVariants = (name: string) => {
|
const folderNameVariants = (name: string) => {
|
||||||
const n = name.toLowerCase()
|
const n = name.toLowerCase()
|
||||||
|
|||||||
Reference in New Issue
Block a user