Skip to content

Commit 09f16de

Browse files
committed
Merge pull request #6 from LearningLocker/issue/mailto_validation
Corrects mailto validation.
2 parents a30a556 + 5cf125a commit 09f16de

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)