add hasFeature util method
This commit is contained in:
parent
40aab69ed0
commit
d1ecb04d0f
@ -25,6 +25,10 @@ export default class Parser extends Tokenizer {
|
||||
}
|
||||
}
|
||||
|
||||
hasFeature(name) {
|
||||
return !!this.options.features[name];
|
||||
}
|
||||
|
||||
extend(name, f) {
|
||||
this[name] = f(this[name]);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user