Bootstrapping implementation
This commit is contained in:
@@ -126,12 +126,10 @@ impl GlobPattern {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
Some(PatternChar::WildcardSingle { .. }) => {
|
||||
if nx < value.len() {
|
||||
px += 1;
|
||||
nx += 1;
|
||||
continue;
|
||||
}
|
||||
Some(PatternChar::WildcardSingle { .. }) if nx < value.len() => {
|
||||
px += 1;
|
||||
nx += 1;
|
||||
continue;
|
||||
}
|
||||
Some(PatternChar::WildcardMany { .. }) => {
|
||||
next_px = px;
|
||||
|
||||
@@ -178,10 +178,8 @@ impl<T: FromStr + Eq + Hash + std::fmt::Debug> Template<T> {
|
||||
TemplateItem::If {
|
||||
variable,
|
||||
block_end: start_pos,
|
||||
} => {
|
||||
if !entry.contains_key(variable) {
|
||||
slice = self.items[*start_pos..*block_end].iter();
|
||||
}
|
||||
} if !entry.contains_key(variable) => {
|
||||
slice = self.items[*start_pos..*block_end].iter();
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user