]> _ Git - fluidbook-html5.git/commitdiff
wip #3738 @0:10
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 25 Jun 2020 14:47:41 +0000 (16:47 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 25 Jun 2020 14:47:41 +0000 (16:47 +0200)
js/libs/fluidbook/fluidbook.share.js

index 2b830081a7509c5ce36d53a610d6eaeaf0d326b1..627c18dc2caae0dd83a115976c8d4d1801f06249 100644 (file)
@@ -145,7 +145,7 @@ FluidbookShare.prototype = {
         body = body.trim();
         body = body.replace(/\%title\%/g, title);
 
-        if (body.indexOf('%link%') === -1) {
+        if (body.indexOf('%link%') === -1 && body.indexOf('http') === -1) {
             body += "\n\n" + u;
         } else {
             body = body.replace(/\%link\%/g, u);