-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: janusweb
action: commit
revision:
path_from:
revision_from: b332b0e6efbc0a8b128aba7060d3914301971548:
path_to:
revision_to:

git.thebackupbox.net

janusweb

git://git.thebackupbox.net/janusweb

commit b332b0e6efbc0a8b128aba7060d3914301971548
Author: James Baicoianu <james_github@baicoianu.com>
Date:   Sun Apr 24 00:40:21 2022 -0700

    Support for node text contents with newlines

diff --git a/scripts/external/JanusFireboxParser.js b/scripts/external/JanusFireboxParser.js

index 8f33699279171057ca4b990b071ff8b1550e3d00..

index ..63c8bff2690488f0b6e5135696a212dc53e39878 100644

--- a/scripts/external/JanusFireboxParser.js
+++ b/scripts/external/JanusFireboxParser.js
@@ -305,7 +305,7 @@ JanusFireboxParser.prototype.parseXML = function(imgxml, leaf, forceLower) {
       } else if (child.nodeName) {
         if (child.nodeName == "#text" || child.nodeName == "#cdata-section") {
           // this gets confused if you have multiple text/cdata nodes...
-          if (!child.nodeValue.match(/^[\s\n]*$/m)) {
+          if (!child.nodeValue.match(/^[\s\n]*$/s)) {
             parent._content = child.nodeValue;
           }
         } else {

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 16:31:21 2024