aboutsummaryrefslogtreecommitdiff
path: root/lib/render.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/render.js')
-rw-r--r--lib/render.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/render.js b/lib/render.js
index 31ed74c..5d8fd66 100644
--- a/lib/render.js
+++ b/lib/render.js
@@ -202,7 +202,7 @@ Render.prototype.markdown = function (text, mentions, opts) {
Render.prototype.imageUrl = function (ref) {
var m = /^blobstore:(.*)/.exec(ref)
if (m) ref = m[1]
- ref = ref.replace(/#/, '%23')
+ ref = String(ref).replace(/#/, '%23')
return this.opts.img_base + ref
}