mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 04:29:21 +03:00
JavaScript substr() is deprecated
This commit is contained in:
parent
04d55be625
commit
c7cf5b1c2c
2 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue