mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: handle \s in path
This commit is contained in:
parent
d19b84c9ee
commit
d5df98f684
1 changed files with 2 additions and 2 deletions
|
|
@ -244,8 +244,8 @@ export function getPath() {
|
|||
return []
|
||||
}
|
||||
const path = ((pathElement as HTMLDivElement).textContent || '')
|
||||
.trim()
|
||||
.replace(/ \/ Jump to $/, '')
|
||||
.replace(/\n/g, '')
|
||||
.replace(/\/\s+Jump to.*/m, '')
|
||||
.trim()
|
||||
.split('/')
|
||||
.filter(Boolean)
|
||||
|
|
|
|||
Loading…
Reference in a new issue