That regular expression can match a newline with [^#], which can spill commented out sauces.
This commit is contained in:
parent
db97bb0329
commit
ddc781d7c9
@ -2717,9 +2717,10 @@
|
||||
var link, _i, _len, _ref;
|
||||
if (g.BOARD === 'f') return;
|
||||
this.links = [];
|
||||
_ref = conf['sauces'].match(/^[^#].+$/gm);
|
||||
_ref = conf['sauces'].split('\n');
|
||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||
link = _ref[_i];
|
||||
if (link[0] === '#') continue;
|
||||
this.links.push(this.funk(link));
|
||||
}
|
||||
if (!this.links.length) return;
|
||||
|
||||
@ -2231,7 +2231,8 @@ sauce =
|
||||
init: ->
|
||||
return if g.BOARD is 'f'
|
||||
@links = []
|
||||
for link in conf['sauces'].match /^[^#].+$/gm
|
||||
for link in conf['sauces'].split '\n'
|
||||
continue if link[0] is '#'
|
||||
@links.push @funk link
|
||||
return unless @links.length
|
||||
g.callbacks.push @node
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user