mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 16:18:32 +08:00
Remove Zalgo API from Discourse.Mention
:
http://blog.izs.me/post/59142742143/designing-apis-for-asynchrony - Thanks @riking for finding it.
This commit is contained in:
@ -14,7 +14,7 @@ function normalize(str) {
|
||||
}
|
||||
|
||||
var md = function(input, expected, text) {
|
||||
var result = Discourse.Markdown.cook(input, {mentionLookup: false, sanitize: true, traditional_markdown_linebreaks: true}),
|
||||
var result = Discourse.Markdown.cook(input, {sanitize: true, traditional_markdown_linebreaks: true}),
|
||||
resultNorm = normalize(result),
|
||||
expectedNorm = normalize(expected),
|
||||
same = (result === expected) || (resultNorm === expectedNorm);
|
||||
|
Reference in New Issue
Block a user