Improved Sieve code and added rfc5435

This commit is contained in:
the-djmaze 2022-03-15 09:58:04 +01:00
parent f453abf149
commit b3c1723c5c
10 changed files with 165 additions and 65 deletions

View file

@ -40,8 +40,8 @@ export class SetCommand extends GrammarCommand
[':lower', ':upper', ':lowerfirst', ':upperfirst', ':quotewildcard', ':length'].forEach(modifier => {
args.includes(modifier) && this.modifiers.push(modifier);
});
this._name = args[args.length-2];
this._value = args[args.length-1];
this._value = args.pop();
this._name = args.pop();
}
}
@ -65,7 +65,7 @@ export class StringTest extends GrammarTest
pushArguments(args)
{
this.source = args[args.length-2];
this.key_list = args[args.length-1];
this.key_list = args.pop();
this.source = args.pop();
}
}