Skip to content

Commit 5cf125a

Browse files
committed
Corrects mailto validation.
1 parent efe3030 commit 5cf125a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@
44
# Composer.
55
vendor
66
composer.lock
7+
8+
tests/assets/test.json

src/Mailto.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php namespace Locker\XApi;
22

33
class Mailto extends RegexpAtom {
4-
protected static $pattern = '/^mailto:[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i';
4+
protected static $pattern = '/^mailto:[A-Z0-9.\'_%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i';
55
}

0 commit comments

Comments
 (0)