add hasFeature util method
This commit is contained in:
parent
c31d2afc7f
commit
25aa6da989
@ -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