diff options
author | Timotej Lazar <timotej.lazar@araneo.org> | 2015-09-18 13:39:40 +0200 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@araneo.org> | 2015-09-18 13:39:40 +0200 |
commit | 99edd51f53b03a49e8c61f95eef0cd6f94e87c2b (patch) | |
tree | 5fa6c834e9f9f8d89d42bcf5d76215375ae79378 /js/codeq | |
parent | 666a497696c80df08bdff7f8ce049565a46541b7 (diff) |
Bugfix: template parameter can be a number
Diffstat (limited to 'js/codeq')
-rw-r--r-- | js/codeq/hint.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/codeq/hint.js b/js/codeq/hint.js index dc774ba..06eceb0 100644 --- a/js/codeq/hint.js +++ b/js/codeq/hint.js @@ -35,7 +35,8 @@ if (!args) return template; return template.replace(/\[%=(\w+)%\]/g, function(match, name) { - return args[name].replace(/&/g, '&') + return args[name].toString() + .replace(/&/g, '&') .replace(/</g, '<') .replace(/>/g, '>'); }); |