mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
Correctly parse multi-line error messages in the editor.
This commit is contained in:
parent
f32a0ca963
commit
0a14681e7b
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ module.exports = class ProblemAlertView extends View
|
|||
|
||||
getRenderData: (context={}) ->
|
||||
context = super context
|
||||
format = (s) -> s?.replace('<', '<').replace('>', '>').replace("\n", "<br>")
|
||||
format = (s) -> s?.replace(/</g, '<').replace(/>/g, '>').replace(/\n/g, '<br>')
|
||||
context.message = format @problem.aetherProblem.message
|
||||
context.hint = format @problem.aetherProblem.hint
|
||||
context
|
||||
|
|
Loading…
Reference in a new issue