fix sauces

This commit is contained in:
James Campos 2012-03-17 06:05:23 -07:00
parent 237b2f2b49
commit b12145c879
2 changed files with 2 additions and 2 deletions

View File

@ -2772,7 +2772,7 @@
createSauceLink: function(link) {
var domain, el, href;
domain = link.match(/(\w+)\.\w+\//)[1];
href = link.replace(/(\d)/g, function(parameter) {
href = link.replace(/(\$\d)/g, function(parameter) {
switch (parameter) {
case '$1':
return "http://thumbs.4chan.org' + img.pathname.replace(/src(\\/\\d+).+$/, 'thumb$1s.jpg') + '";

View File

@ -2349,7 +2349,7 @@ Sauce =
createSauceLink: (link) ->
domain = link.match(/(\w+)\.\w+\//)[1]
href = link.replace /(\d)/g, (parameter) ->
href = link.replace /(\$\d)/g, (parameter) ->
switch parameter
when '$1'
"http://thumbs.4chan.org' + img.pathname.replace(/src(\\/\\d+).+$/, 'thumb$1s.jpg') + '"