Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit 7d7456f

Browse files
committed
Merge branch 'dev' of github.com:EBISPOT/OLS into dev
2 parents 06d536f + c65b87a commit 7d7456f

File tree

2 files changed

+27
-25
lines changed

2 files changed

+27
-25
lines changed

ols-web/pom.xml

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@
9393
</dependency>
9494

9595
<dependency>
96-
<groupId>com.github.warmuuh</groupId>
97-
<artifactId>libsass-maven-plugin</artifactId>
98-
<version>0.2.10-libsass_3.5.3</version>
96+
<groupId>nl.geodienstencentrum.maven</groupId>
97+
<artifactId>sass-maven-plugin</artifactId>
98+
<version>3.7.2</version>
9999
</dependency>
100100

101101
</dependencies>
@@ -156,26 +156,28 @@
156156
</attributes>
157157
</configuration>
158158
</plugin>
159-
<plugin>
160-
<groupId>com.github.warmuuh</groupId>
161-
<artifactId>libsass-maven-plugin</artifactId>
162-
<version>0.2.10-libsass_3.5.3</version>
163-
<executions>
164-
<execution>
165-
<phase>generate-resources</phase>
166-
<goals>
167-
<goal>compile</goal>
168-
</goals>
169-
</execution>
170-
</executions>
171-
<configuration>
172-
<inputPath>${project.basedir}/src/main/resources/scss/</inputPath>
173-
<!--outputPath>${project.basedir}/target/</outputPath-->
174-
<outputPath>${project.basedir}/src/main/resources/static/css/</outputPath>
175-
<!--includePath>${project.basedir}/src/main/sass/plugins/</includePath-->
176-
<sourceMapOutputPath>${project.basedir}/src/main/resources/static/css/</sourceMapOutputPath>
177-
</configuration>
178-
</plugin>
159+
<plugin>
160+
<groupId>nl.geodienstencentrum.maven</groupId>
161+
<artifactId>sass-maven-plugin</artifactId>
162+
<version>3.7.2</version>
163+
<executions>
164+
<execution>
165+
<id>generate-css</id>
166+
<phase>generate-resources</phase>
167+
<goals>
168+
<goal>update-stylesheets</goal>
169+
</goals>
170+
<configuration>
171+
<sassOptions>
172+
<always_update>true</always_update>
173+
</sassOptions>
174+
<sassSourceDirectory>${project.basedir}/src/main/resources/scss</sassSourceDirectory>
175+
<destination>${project.basedir}/src/main/resources/static/css</destination>
176+
</configuration>
177+
</execution>
178+
</executions>
179+
</plugin>
180+
179181
</plugins>
180182
</build>
181183
</project>

ols-web/src/main/resources/static/js/ols.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function goTo (url) {
2121

2222
$(function() {
2323
$('p.annotation-value').each(function(i, el) {
24-
$(el).html($(el).html().replace(/((http|https|ftp):\/\/[^\s,]+)/g, function(url) {
24+
$(el).html($(el).html().replace(/((http|https|ftp):\/\/[^\s,\[\]]+)/g, function(url) {
2525
console.log("Replacing URL with link: " + url);
2626
return "<a href=\"$1\">" + escapeHtml(url) + "</a>";
2727
}))
@@ -100,4 +100,4 @@ function escapeHtml(unsafe)
100100
.replace(/>/g, "&gt;")
101101
.replace(/"/g, "&quot;")
102102
.replace(/'/g, "&#039;");
103-
}
103+
}

0 commit comments

Comments
 (0)