chore(app): cleanup
This commit is contained in:
parent
30f0d3b394
commit
acc53d9f61
1 changed files with 1 additions and 5 deletions
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue