13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
import re
from channels import GenericChannel
from config import log, conf
# filter
class tmp_clean_multiurl(object):
module = __name__
rx_space = re.compile(r"\s")
rx_nonurl = re.compile(r"(^|\s)(?!\w+:)\S+")
# Hook
def __init__(self, parent):
GenericChannel.postprocess_filters.append(self.filter_rows)
|
|
|
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
import re
from channels import GenericChannel
from config import log, conf
# filter
class tmp_clean_multiurl(object):
module = 'tmp_clean_multiurl'
rx_space = re.compile(r"\s")
rx_nonurl = re.compile(r"(^|\s)(?!\w+:)\S+")
# Hook
def __init__(self, parent):
GenericChannel.postprocess_filters.append(self.filter_rows)
|