You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2020/01/09 18:25:48 UTC

[isis] 09/11: ISIS-2261: adds regex for config property

This is an automated email from the ASF dual-hosted git repository.

danhaywood pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git

commit 164120ad93e9fe0b1e43001f78300a5cb0e1a938
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Thu Jan 9 17:35:08 2020 +0000

    ISIS-2261: adds regex for config property
---
 .../config/src/main/java/org/apache/isis/config/IsisConfiguration.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/core/config/src/main/java/org/apache/isis/config/IsisConfiguration.java b/core/config/src/main/java/org/apache/isis/config/IsisConfiguration.java
index 36be8c3..906a1e8 100644
--- a/core/config/src/main/java/org/apache/isis/config/IsisConfiguration.java
+++ b/core/config/src/main/java/org/apache/isis/config/IsisConfiguration.java
@@ -723,9 +723,10 @@ public class IsisConfiguration {
              * </p>
              *
              * <p>
-             * If set, eg <code>https://dev.myapp.com</code>, then this value will be used instead.
+             * If set, eg <code>https://dev.myapp.com/</code>, then this value will be used instead.
              * </p>
              */
+            @javax.validation.constraints.Pattern(regexp="^http[s]?://[^:]+?(:\\d+)?/$")
             private Optional<String> baseUri = Optional.empty();
             private final Gsoc2013 gsoc2013 = new Gsoc2013();
             @Data