From e99886139e183a4137986838eeaa88deb97c08f3 Mon Sep 17 00:00:00 2001 From: James McLaughlin Date: Mon, 7 Mar 2022 00:51:37 +0000 Subject: [PATCH 1/2] Update ols-web sass library --- ols-web/pom.xml | 48 +++++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 23 deletions(-) diff --git a/ols-web/pom.xml b/ols-web/pom.xml index bbcb5ec8..0904de65 100644 --- a/ols-web/pom.xml +++ b/ols-web/pom.xml @@ -93,9 +93,9 @@ - com.github.warmuuh - libsass-maven-plugin - 0.2.10-libsass_3.5.3 + nl.geodienstencentrum.maven + sass-maven-plugin + 3.7.2 @@ -156,26 +156,28 @@ - - com.github.warmuuh - libsass-maven-plugin - 0.2.10-libsass_3.5.3 - - - generate-resources - - compile - - - - - ${project.basedir}/src/main/resources/scss/ - - ${project.basedir}/src/main/resources/static/css/ - - ${project.basedir}/src/main/resources/static/css/ - - + + nl.geodienstencentrum.maven + sass-maven-plugin + 3.7.2 + + + generate-css + generate-resources + + update-stylesheets + + + + true + + ${project.basedir}/src/main/resources/scss + ${project.basedir}/src/main/resources/static/css + + + + + From c65b87ae0ed3de510efcde265f432979e7b67b3f Mon Sep 17 00:00:00 2001 From: James McLaughlin Date: Mon, 14 Mar 2022 10:57:16 +0000 Subject: [PATCH 2/2] Exclude [ and ] from regex to fix #569 --- ols-web/src/main/resources/static/js/ols.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ols-web/src/main/resources/static/js/ols.js b/ols-web/src/main/resources/static/js/ols.js index 3d7ae873..1d086b0b 100644 --- a/ols-web/src/main/resources/static/js/ols.js +++ b/ols-web/src/main/resources/static/js/ols.js @@ -21,7 +21,7 @@ function goTo (url) { $(function() { $('p.annotation-value').each(function(i, el) { - $(el).html($(el).html().replace(/((http|https|ftp):\/\/[^\s,]+)/g, function(url) { + $(el).html($(el).html().replace(/((http|https|ftp):\/\/[^\s,\[\]]+)/g, function(url) { console.log("Replacing URL with link: " + url); return "" + escapeHtml(url) + ""; })) @@ -100,4 +100,4 @@ function escapeHtml(unsafe) .replace(/>/g, ">") .replace(/"/g, """) .replace(/'/g, "'"); - } \ No newline at end of file + }