Commit f75b367f authored by Aral Balkan's avatar Aral Balkan

Fixed the issue with image replacements failing for subsequent images in...

Fixed the issue with image replacements failing for subsequent images in messages with more than one image. Closes #48.
parent 1e73ffd2
......@@ -250,8 +250,7 @@ class PulseEventHandler
console.log data
# Massage URLs
massagedHTML = data.replace 'img src="/public', 'img src="/public/' + person
massagedHTML = data.replace new RegExp('img src="/public', 'g'), 'img src="/public/' + person
console.log "Message HTML with massaged URLS:"
console.log massagedHTML
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment