mirror of
https://github.com/urbit/shrub.git
synced 2024-12-03 05:43:18 +03:00
update urb.util.basename
This commit is contained in:
parent
8151b0279e
commit
b3ea66fab3
@ -281,6 +281,9 @@ window.urb.util = {
|
||||
if(spur === '/') spur = ''
|
||||
pathname = pathname || window.location.pathname
|
||||
if(pathname[0] == '/') pathname = pathname.slice(1)
|
||||
if(pathname[0] != '~' && pathname[0] != '='){
|
||||
return spur
|
||||
}
|
||||
pathname = pathname.split("/")
|
||||
|
||||
var pref, pred, prec, base = ""
|
||||
|
Loading…
Reference in New Issue
Block a user