This commit is contained in:
James Campos 2011-10-09 16:18:12 -07:00
parent 3f8e45cd18
commit b83c4cebf6
2 changed files with 3 additions and 3 deletions

View File

@ -2175,8 +2175,8 @@
sauce = { sauce = {
init: function() { init: function() {
sauce.prefixes = conf['flavors'].match(/^[^#].+$/gm); sauce.prefixes = conf['flavors'].match(/^[^#].+$/gm);
sauce.names = sauce.prefixes.map(function(s) { sauce.names = sauce.prefixes.map(function(prefix) {
return s.match(/\w+(?=\.)/)[0]; return prefix.match(/(\w+)\./)[1];
}); });
return g.callbacks.push(function(root) { return g.callbacks.push(function(root) {
var i, link, prefix, span, suffix, _len, _ref, _results; var i, link, prefix, span, suffix, _len, _ref, _results;

View File

@ -1647,7 +1647,7 @@ anonymize =
sauce = sauce =
init: -> init: ->
sauce.prefixes = conf['flavors'].match /^[^#].+$/gm sauce.prefixes = conf['flavors'].match /^[^#].+$/gm
sauce.names = sauce.prefixes.map (s) -> s.match(/\w+(?=\.)/)[0] sauce.names = sauce.prefixes.map (prefix) -> prefix.match(/(\w+)\./)[1]
g.callbacks.push (root) -> g.callbacks.push (root) ->
return if root.className is 'inline' or not span = $ '.filesize', root return if root.className is 'inline' or not span = $ '.filesize', root
suffix = $('a', span).href suffix = $('a', span).href