mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 21:49: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
|
|
@ -271,10 +271,14 @@ GrammarStringList.fromString = list => {
|
|||
|
||||
export class GrammarQuotedString extends GrammarString
|
||||
{
|
||||
constructor(value = '')
|
||||
{
|
||||
super(value instanceof GrammarQuotedString ? value.value : value);
|
||||
}
|
||||
|
||||
toString()
|
||||
{
|
||||
return '"' + this._value.replace(/[\\"]/g, '\\$&') + '"';
|
||||
// return '"' + super.toString().replace(/[\\"]/g, '\\$&') + '"';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue