repo: janusweb
action: commit
revision: 
path_from: 
revision_from: af2bdb027945503df9e9989ea82d66299db64493:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit af2bdb027945503df9e9989ea82d66299db64493
Author: James Baicoianu 
Date:   Mon May 2 00:00:27 2022 -0700

    Improved newline handling in room source parsing

diff --git a/scripts/room.js b/scripts/room.js
index 7776959b171847b62dbd2d68922bb0fcf33c2d31..
index ..15549a7139ce6f72670a45b18f06e3b49c508ca2 100644
--- a/scripts/room.js
+++ b/scripts/room.js
@@ -706,9 +706,9 @@ elation.require([
     }
     this.parseSource = function(data) { 
       this.fullsource = data;
-      var titlere = /([\s\S]*?)<\/title>/mi;
-      var re = /<fireboxroom>[\s\S]*?<\/fireboxroom>/mi;
-      var re2 = /<janus-viewer[^>]*>[\s\S]*?<\/janus-viewer>/mi;
+      var titlere = /<title>([\s\S]*?)<\/title>/si;
+      var re = /<fireboxroom>[\s\S]*?<\/fireboxroom>/si;
+      var re2 = /<janus-viewer[^>]*>[\s\S]*?<\/janus-viewer>/si;
       var mtitle = data.match(titlere);
       var parsed = {
         title: 'Untitled Room',
</pre>
<p>-----END OF PAGE-----</p>

</main>
</body>

</html>