Skip to content

Commit

Permalink
fix: update mailto regex to accept domains with special characters (#128
Browse files Browse the repository at this point in the history
)

* fix: update mailto regex to accept domains with special characters

* Update Formalisation(shacl)/Core/PiecesShape/Dataset.ttl

Co-authored-by: kburger <[email protected]>

---------

Co-authored-by: kburger <[email protected]>
  • Loading branch information
PatrickDekkerHealthRI and kburger authored Jul 23, 2024
1 parent 7729315 commit 708442b
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 2 deletions.
Binary file removed Formalisation(shacl)/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion Formalisation(shacl)/Core/Example-Data/example-dataset.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
dct:identifier "test-creator-id-000" ;
] ;
dcat:contactPoint [
vcard:hasEmail <mailto:foo@bar.net> ;
vcard:hasEmail <mailto:foo.bar@health-ri.nl> ;
vcard:fn "Foo Bar" ;
] .

Expand Down
2 changes: 1 addition & 1 deletion Formalisation(shacl)/Core/PiecesShape/Dataset.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ sh:targetClass foaf:Agent .
[
sh:path vcard:hasEmail ;
sh:nodeKind sh:IRI ;
sh:pattern "mailto:\\w+@\\w+\\.\\w+" ;
sh:pattern "^mailto:.+@.+\\..+$" ;
dash:viewer dash:URIViewer ;
dash:editor dash:URIEditor ;
sh:minCount 1 ;
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 708442b

Please sign in to comment.