This will work until I figure out what Mayhem was doing.

This commit is contained in:
Zixaphir 2013-03-16 12:49:44 -07:00
parent 4f8206f343
commit a6b7dc2df8
2 changed files with 8 additions and 5 deletions

View File

@ -4652,13 +4652,16 @@
},
createSauceLink: function(link) {
var m, text;
link = link.replace(/%(T?URL|MD5|board)/g, function(parameter) {
link = link.replace(/%(T?URL|MD5|board)/ig, function(parameter) {
switch (parameter) {
case '%TURL':
case '%turl':
return "' + post.file.thumbURL + '";
case '%URL':
case '%url':
return "' + post.file.URL + '";
case '%MD5':
case '%md5':
return "' + encodeURIComponent(post.file.MD5) + '";
case '%board':
return "' + post.board + '";

View File

@ -3054,13 +3054,13 @@ Sauce =
name: 'Sauce'
cb: @node
createSauceLink: (link) ->
link = link.replace /%(T?URL|MD5|board)/g, (parameter) ->
link = link.replace /%(T?URL|MD5|board)/ig, (parameter) ->
switch parameter
when '%TURL'
when '%TURL', '%turl'
"' + post.file.thumbURL + '"
when '%URL'
when '%URL', '%url'
"' + post.file.URL + '"
when '%MD5'
when '%MD5', '%md5'
"' + encodeURIComponent(post.file.MD5) + '"
when '%board'
"' + post.board + '"