Fix . line
This commit is contained in:
parent
8897e637b2
commit
f622286ae5
@ -49,12 +49,11 @@ def filteringcon(filters_regex_one):
|
||||
with open(filters_regex_one, 'r') as f:
|
||||
for line in f:
|
||||
for word in a:
|
||||
if word in line and not line.startswith('#') and line.startswith((tuple(word))):
|
||||
if word in line and not line.startswith('#') and line.startswith((tuple(word))) and not '.' in line:
|
||||
line = line.replace(word,'')
|
||||
else:
|
||||
elif '.' in line and not line.startswith('.'):
|
||||
line = line.replace(line, line)
|
||||
lst.append(line)
|
||||
f.close()
|
||||
with open(filters_regex_one, 'w') as f:
|
||||
for line in lst:
|
||||
f.write(line)
|
||||
|
Loading…
Reference in New Issue
Block a user