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;
|
var link, _i, _len, _ref;
|
||||||
if (g.BOARD === 'f') return;
|
if (g.BOARD === 'f') return;
|
||||||
this.links = [];
|
this.links = [];
|
||||||
_ref = conf['sauces'].match(/^[^#].+$/gm);
|
_ref = conf['sauces'].split('\n');
|
||||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||||
link = _ref[_i];
|
link = _ref[_i];
|
||||||
|
if (link[0] === '#') continue;
|
||||||
this.links.push(this.funk(link));
|
this.links.push(this.funk(link));
|
||||||
}
|
}
|
||||||
if (!this.links.length) return;
|
if (!this.links.length) return;
|
||||||
|
|||||||
@ -2231,7 +2231,8 @@ sauce =
|
|||||||
init: ->
|
init: ->
|
||||||
return if g.BOARD is 'f'
|
return if g.BOARD is 'f'
|
||||||
@links = []
|
@links = []
|
||||||
for link in conf['sauces'].match /^[^#].+$/gm
|
for link in conf['sauces'].split '\n'
|
||||||
|
continue if link[0] is '#'
|
||||||
@links.push @funk link
|
@links.push @funk link
|
||||||
return unless @links.length
|
return unless @links.length
|
||||||
g.callbacks.push @node
|
g.callbacks.push @node
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user