Skip to content

Commit 0c6a641

Browse files
committed
Merge pull request #9 from LearningLocker/issue-8
Fixes #8.
2 parents 09f16de + 4009826 commit 0c6a641

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

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]{1,63}$/i';
55
}

tests/assets/test.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
{
22
"actor": {
3-
"objectType": "Group",
4-
"account": {
5-
"homePage": "http://myaccount.bmj.com",
6-
"name": "hrl"
7-
},
8-
"member": [
9-
]
3+
"mbox": "mailto:[email protected]"
104
},
115
"verb": {
126
"id": "http:\/\/adlnet.gov\/expapi\/verbs\/completed",

0 commit comments

Comments
 (0)