No longer endorse relative paths
This commit is contained in:
parent
c0b0761cbb
commit
89f80086a2
4 changed files with 12 additions and 43 deletions
|
@ -706,7 +706,11 @@ impl WikiPath {
|
|||
}
|
||||
|
||||
pub fn usable(&self) -> bool {
|
||||
!self.composite.is_empty() && !self.irregular() && !self.too_broad()
|
||||
!self.composite.is_empty()
|
||||
&& !self.irregular()
|
||||
&& !self.too_broad()
|
||||
&& !self.composite.starts_with("./")
|
||||
&& !self.composite.starts_with("../")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue