imˈpro͞ovmənt
This commit is contained in:
parent
60b5494f91
commit
f9f620c3d0
@ -530,16 +530,16 @@
|
|||||||
init: function() {
|
init: function() {
|
||||||
var filter, filters, key, m, regx, _i, _len;
|
var filter, filters, key, m, regx, _i, _len;
|
||||||
HTMLBlockquoteElement.prototype.toString = function() {
|
HTMLBlockquoteElement.prototype.toString = function() {
|
||||||
return ($.el('span', {
|
return ($.el('a', {
|
||||||
innerHTML: this.innerHTML.replace(/<br>/g, '\n')
|
innerHTML: this.innerHTML.replace(/<br>/g, '\n')
|
||||||
})).textContent;
|
})).textContent;
|
||||||
};
|
};
|
||||||
filters = {};
|
filters = {};
|
||||||
for (key in config.filter) {
|
for (key in config.filter) {
|
||||||
filters[key] = [];
|
|
||||||
if (!(m = conf[key].match(/(.+)/g))) {
|
if (!(m = conf[key].match(/(.+)/g))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
filters[key] = [];
|
||||||
for (_i = 0, _len = m.length; _i < _len; _i++) {
|
for (_i = 0, _len = m.length; _i < _len; _i++) {
|
||||||
filter = m[_i];
|
filter = m[_i];
|
||||||
try {
|
try {
|
||||||
|
|||||||
@ -386,13 +386,13 @@ $$ = (selector, root=d.body) ->
|
|||||||
filter =
|
filter =
|
||||||
init: ->
|
init: ->
|
||||||
HTMLBlockquoteElement.prototype.toString = ->
|
HTMLBlockquoteElement.prototype.toString = ->
|
||||||
return ($.el 'span', innerHTML: @innerHTML.replace /<br>/g, '\n').textContent
|
return ($.el 'a', innerHTML: @innerHTML.replace /<br>/g, '\n').textContent
|
||||||
|
|
||||||
filters = {}
|
filters = {}
|
||||||
for key of config.filter
|
for key of config.filter
|
||||||
filters[key] = []
|
|
||||||
unless m = conf[key].match /(.+)/g
|
unless m = conf[key].match /(.+)/g
|
||||||
continue
|
continue
|
||||||
|
filters[key] = []
|
||||||
for filter in m
|
for filter in m
|
||||||
try if (regx = eval filter).constructor is RegExp
|
try if (regx = eval filter).constructor is RegExp
|
||||||
filters[key].push regx
|
filters[key].push regx
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user