mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 21:19:21 +03:00
Fix Sieve QuotedString handling
This commit is contained in:
parent
257d9201f6
commit
61c2eefec1
13 changed files with 185 additions and 104 deletions
|
|
@ -16,18 +16,21 @@ export class IncludeCommand extends ControlCommand
|
|||
this.global = false; // ':personal' / ':global';
|
||||
this.once = false;
|
||||
this.optional = false;
|
||||
this.value = new GrammarQuotedString;
|
||||
this._value = new GrammarQuotedString;
|
||||
}
|
||||
|
||||
get require() { return 'include'; }
|
||||
|
||||
get value() { return this._value.value; }
|
||||
set value(v) { this._value.value = v; }
|
||||
|
||||
toString()
|
||||
{
|
||||
return 'include'
|
||||
+ (this.global ? ' :global' : '')
|
||||
+ (this.once ? ' :once' : '')
|
||||
+ (this.optional ? ' :optional' : '')
|
||||
+ ' ' + this.value + ';';
|
||||
+ ' ' + this._value + ';';
|
||||
}
|
||||
|
||||
pushArguments(args)
|
||||
|
|
@ -36,7 +39,7 @@ export class IncludeCommand extends ControlCommand
|
|||
if (':global' === arg || ':once' === arg || ':optional' === arg) {
|
||||
this[arg.slice(1)] = true;
|
||||
} else if (arg instanceof GrammarQuotedString) {
|
||||
this.value = arg;
|
||||
this._value = arg;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue