Skip to content

Commit 9826382

Browse files
Fix regex condition for urls only (#314)
1 parent eb696aa commit 9826382

File tree

1 file changed

+1
-1
lines changed
  • grails-app/views/speciesListItem

1 file changed

+1
-1
lines changed

Diff for: grails-app/views/speciesListItem/list.gsp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,7 @@
10351035
</div>
10361036
</td>
10371037
<td class="rawScientificName">
1038-
<g:if test="${fieldValue(bean: result, field: "rawScientificName") ==~ /.*((http|https):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-]))*/}">
1038+
<g:if test="${fieldValue(bean: result, field: 'rawScientificName') ==~ /.*((http|https):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])*)/}">
10391039
<a href="${fieldValue(bean: result, field: "rawScientificName")}" target="_blank">${fieldValue(bean: result, field: "rawScientificName")}</a>
10401040
</g:if>
10411041
<g:else>

0 commit comments

Comments
 (0)