Skip to content

Commit

Permalink
rollback aspect urn regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Yauhenikapl committed Aug 30, 2024
1 parent ef150d0 commit 0b4bfa8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* @see <a href="https://eclipse-esmf.github.io/samm-specification/2.0.0/namespaces.html">Definition of the URN</a>
*/
public class AspectModelUrn implements Comparable<AspectModelUrn> {
public static final String NAMESPACE_REGEX = "([a-zA-Z0-9()+,\\-.:=@;$_!*']|%[0-9a-fA-F]{2})+";
public static final String NAMESPACE_REGEX = "[a-zA-Z][a-zA-Z0-9]{1,62}\\.[a-zA-Z0-9-]{1,63}(\\.[a-zA-Z0-9_-]{1,63})*";

public static final String NAMESPACE_REGEX_PART = "[a-zA-Z][a-zA-Z0-9]{1,62}(\\.[a-zA-Z0-9_-]{1,63})*";
public static final Pattern NAMESPACE_PATTERN = Pattern.compile( NAMESPACE_REGEX );
Expand Down

0 comments on commit 0b4bfa8

Please sign in to comment.