JavaScript substr() is deprecated

This commit is contained in:
the-djmaze 2022-10-19 16:43:16 +02:00
parent 04d55be625
commit c7cf5b1c2c
2 changed files with 5 additions and 5 deletions

View file

@ -34,7 +34,7 @@ export class IncludeCommand extends ControlCommand
{
args.forEach(arg => {
if (':global' === arg || ':once' === arg || ':optional' === arg) {
this[arg.substr(1)] = true;
this[arg.slice(1)] = true;
} else if (arg instanceof GrammarQuotedString) {
this.value = arg;
}