|
|
@ -239,12 +239,12 @@ weechat.filter('prefixlimit', function() { |
|
|
|
|
|
|
|
|
|
|
|
weechat.filter('codify', function() { |
|
|
|
weechat.filter('codify', function() { |
|
|
|
return function(text) { |
|
|
|
return function(text) { |
|
|
|
var re = /(`[^``]+`)/g |
|
|
|
var re = /(`[^``]+`)/g; |
|
|
|
|
|
|
|
|
|
|
|
return text.replace(re, function(z) { |
|
|
|
return text.replace(re, function(z) { |
|
|
|
var rr = '<code>' + z.slice(1, z.length-1) + '</code>'; |
|
|
|
var rr = '<code>' + z.slice(1, z.length-1) + '</code>'; |
|
|
|
return rr; |
|
|
|
return rr; |
|
|
|
}) |
|
|
|
}); |
|
|
|
}; |
|
|
|
}; |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|