mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-04 06:57:03 +03:00
Added draft code for handling "require []"
This commit is contained in:
parent
d9865e3a46
commit
43c669e629
8 changed files with 36 additions and 9 deletions
|
|
@ -15,9 +15,12 @@ class SpamTest extends Grammar.Test
|
|||
this.comparator = 'i;ascii-casemap',
|
||||
this.match_type = ':is',
|
||||
this.value = new Grammar.QuotedString;
|
||||
// this.require = this.percent ? 'spamtestplus' : 'spamtest';
|
||||
}
|
||||
|
||||
// get require() { return this.percent ? 'spamtestplus' : 'spamtest'; }
|
||||
// get require() { return /:value|:count/.test(this.match_type) ? 'relational' : ''; }
|
||||
get require() { return 'spamtestplus'; }
|
||||
|
||||
toString()
|
||||
{
|
||||
return 'spamtest'
|
||||
|
|
@ -56,9 +59,11 @@ class VirusTest extends Grammar.Test
|
|||
this.comparator = 'i;ascii-casemap',
|
||||
this.match_type = ':is',
|
||||
this.value = new Grammar.QuotedString; // 1 - 5
|
||||
// this.require = 'virustest';
|
||||
}
|
||||
|
||||
// get require() { return /:value|:count/.test(this.match_type) ? ['virustest','relational'] : 'virustest'; }
|
||||
get require() { return 'virustest'; }
|
||||
|
||||
toString()
|
||||
{
|
||||
return 'virustest'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue