mirror of
https://github.com/catppuccin/web-file-explorer-icons.git
synced 2026-01-09 05:50:49 +08:00
fix: use basename of directory paths for icon filename (#201)
This commit is contained in:
parent
e32bc50d97
commit
1fd9c213e4
@ -118,7 +118,7 @@ export async function replaceIconInRow(
|
||||
if (!fileNameEl) return;
|
||||
const fileName = fileNameEl.textContent
|
||||
?.split('/')
|
||||
.at(0)
|
||||
.at(-1)
|
||||
.trim()
|
||||
/* Remove [Unicode LEFT-TO-RIGHT MARK](https://en.wikipedia.org/wiki/Left-to-right_mark) used on GitLab's merge request diff file tree. */
|
||||
.replace(/\u200E/g, '');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user