☰
Debian Codegraph
@
4.8.6+dfsg-2
/
/
resources
/
scripts
/
filters
/
whitelist.js
☽
☼
resources/scripts/filters/whitelist.js
code
plain
raw
symbols
SCIP
GPL-3
2013-2020, Martin Rotter <
[email protected]
>
debian/copyright
1
// This filter accepts only messages whose title
2
// is on the whitelist.
3
4
var
whitelist = [
5
'abc'
,
6
'123'
7
];
8
9
function
filterMessage
() {
10
if
(whitelist.
some
(i => msg.
title
.
indexOf
(i) != -
1
)) {
11
return
MessageObject
.
Accept
;
12
}
else
{
13
return
MessageObject
.
Ignore
;
14
}
15
}