Speed E the fuck up
Conflicts: builds/appchan-x.user.js builds/crx/script.js src/General/Globals.coffee
This commit is contained in:
parent
a993cb8244
commit
00541ba898
@ -9,6 +9,11 @@ g =
|
|||||||
FAQ: '<%= meta.faq %>'
|
FAQ: '<%= meta.faq %>'
|
||||||
CHANGELOG: '<%= meta.repo %>blob/<%= meta.mainBranch %>/CHANGELOG.md'
|
CHANGELOG: '<%= meta.repo %>blob/<%= meta.mainBranch %>/CHANGELOG.md'
|
||||||
boards: {}
|
boards: {}
|
||||||
E = (text) ->
|
|
||||||
(text+'').replace /[&"'<>]/g, (x) ->
|
E = do ->
|
||||||
{'&': '&', "'": ''', '"': '"', '<': '<', '>': '>'}[x]
|
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