Skip to content

Commit

Permalink
feat: add support to mailto links (#423)
Browse files Browse the repository at this point in the history
Co-authored-by: Schmailzl, Sebastian <sebastian.schmailzl@wk-it.com>
  • Loading branch information
schmoizz and Schmailzl, Sebastian committed Jul 21, 2022
1 parent 81f1503 commit b9aec15
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class LinkComponent implements OnInit, OnDestroy {
form = new FormGroup({
href: new FormControl('', [
Validators.required,
Validators.pattern('(https?://)?([\\da-z.-]+)\\.([a-z.]{2,6})[/\\w .-]*/??([^#\n\r]*)?#?([^\n\r]*)'),
Validators.pattern('(https?://)?([\\da-z.-]+)\\.([a-z.]{2,6})[/\\w .-]*/??([^#\n\r]*)?#?([^\n\r]*)|(mailto:.*[@].*)'),
]),
text: new FormControl('', [Validators.required]),
openInNewTab: new FormControl(true),
Expand Down

0 comments on commit b9aec15

Please sign in to comment.