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 %>'
|
||||
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