Normalize vocabulary roots by removing the last path separator so that scaffold tool works with trailing separators
parent
d8ab5edb83
commit
3b11e2d6aa
|
|
@ -22,7 +22,9 @@ M: bad-developer-name summary
|
|||
|
||||
<PRIVATE
|
||||
|
||||
: vocab-root? ( string -- ? ) vocab-roots get member? ;
|
||||
: vocab-root? ( string -- ? )
|
||||
trim-tail-separators
|
||||
vocab-roots get member? ;
|
||||
|
||||
: contains-dot? ( string -- ? ) ".." swap subseq? ;
|
||||
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ SYMBOL: add-vocab-root-hook
|
|||
] "vocabs.loader" add-startup-hook
|
||||
|
||||
: add-vocab-root ( root -- )
|
||||
trim-tail-separators
|
||||
[ vocab-roots get adjoin ]
|
||||
[ add-vocab-root-hook get-global call( root -- ) ] bi ;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue