Speed E the fuck up
This commit is contained in:
parent
ba380613ed
commit
7e6720ee4d
@ -508,17 +508,24 @@
|
||||
boards: {}
|
||||
};
|
||||
|
||||
E = function(text) {
|
||||
return (text + '').replace(/[&"'<>]/g, function(x) {
|
||||
return {
|
||||
'&': '&',
|
||||
"'": ''',
|
||||
'"': '"',
|
||||
'<': '<',
|
||||
'>': '>'
|
||||
}[x];
|
||||
});
|
||||
};
|
||||
E = (function() {
|
||||
var fn, r, regex, str;
|
||||
str = {
|
||||
'&': '&',
|
||||
"'": ''',
|
||||
'"': '"',
|
||||
'<': '<',
|
||||
'>': '>'
|
||||
};
|
||||
r = String.prototype.replace;
|
||||
regex = /[&"'<>]/g;
|
||||
fn = function(x) {
|
||||
return str[x];
|
||||
};
|
||||
return function(text) {
|
||||
return r.call(text, regex, fn);
|
||||
};
|
||||
})();
|
||||
|
||||
Mascots = {
|
||||
'Akiyama_Mio': {
|
||||
|
||||
@ -480,17 +480,24 @@
|
||||
boards: {}
|
||||
};
|
||||
|
||||
E = function(text) {
|
||||
return (text + '').replace(/[&"'<>]/g, function(x) {
|
||||
return {
|
||||
'&': '&',
|
||||
"'": ''',
|
||||
'"': '"',
|
||||
'<': '<',
|
||||
'>': '>'
|
||||
}[x];
|
||||
});
|
||||
};
|
||||
E = (function() {
|
||||
var fn, r, regex, str;
|
||||
str = {
|
||||
'&': '&',
|
||||
"'": ''',
|
||||
'"': '"',
|
||||
'<': '<',
|
||||
'>': '>'
|
||||
};
|
||||
r = String.prototype.replace;
|
||||
regex = /[&"'<>]/g;
|
||||
fn = function(x) {
|
||||
return str[x];
|
||||
};
|
||||
return function(text) {
|
||||
return r.call(text, regex, fn);
|
||||
};
|
||||
})();
|
||||
|
||||
Mascots = {
|
||||
'Akiyama_Mio': {
|
||||
|
||||
@ -14,6 +14,10 @@ g =
|
||||
CHANGELOG: '<%= meta.repo %>blob/<%= meta.mainBranch %>/CHANGELOG.md'
|
||||
boards: {}
|
||||
|
||||
E = (text) ->
|
||||
(text+'').replace /[&"'<>]/g, (x) ->
|
||||
{'&': '&', "'": ''', '"': '"', '<': '<', '>': '>'}[x]
|
||||
E = do ->
|
||||
str = {'&': '&', "'": ''', '"': '"', '<': '<', '>': '>'}
|
||||
r = String::replace
|
||||
regex = /[&"'<>]/g
|
||||
fn = (x) ->
|
||||
str[x]
|
||||
(text) -> r.call text, regex, fn
|
||||
Loading…
x
Reference in New Issue
Block a user