allow comments after continuing lines, like this:
OPT_I=(?i)( \
agresion| \ # Paul
apex theory| \
at the drive in| \ # Paul
bad religion| \
This commit is contained in:
parent
e20d358a80
commit
6425530640
1 changed files with 1 additions and 0 deletions
|
|
@ -125,6 +125,7 @@ def parse_config(default = {})
|
||||||
lines.collect!{|x|
|
lines.collect!{|x|
|
||||||
x.sub!(/^\s*/, "")
|
x.sub!(/^\s*/, "")
|
||||||
x.sub!(/\#.*$/, "")
|
x.sub!(/\#.*$/, "")
|
||||||
|
x.sub!(/\s*$/, "")
|
||||||
x.chomp
|
x.chomp
|
||||||
}
|
}
|
||||||
while i < lines.length
|
while i < lines.length
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue