Skip to content

Commit

Permalink
Merge pull request #13 from LearningLocker/issue/819
Browse files Browse the repository at this point in the history
  • Loading branch information
ryasmi authored Jun 30, 2016
2 parents a239144 + a3e8072 commit 9aff9b2
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
[text]
eol = lf
* text eol=lf
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
# Composer.
vendor
composer.lock
composer.phar

tests/assets/test.json
2 changes: 1 addition & 1 deletion src/IMT.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php namespace Locker\XApi;

class IMT extends RegexpAtom {
protected static $pattern = '/^(application|audio|example|image|message|model|multipart|text|video)(\/[-\w\+]+)(;\s*[-\w]+\=[-\w]+)*;?$/';
protected static $pattern = '/^((application|audio|example|image|message|model|multipart|text|video)(\/[-\w\+\.]+)(;\s*[-\w]+\=[-\w]+)*;?)$/';
}
11 changes: 10 additions & 1 deletion tests/assets/test.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,14 @@
},
"object": {
"id": "http:\/\/localhost\/moodle\/mod\/quiz\/attempt.php?attempt=48"
}
},
"attachments": [{
"contentType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"usageType": "http://www.example.com",
"display": {},
"description": {},
"length": 100,
"sha2": "9cfe7faff7054298ca87557e15a10262de8d3eee77827417fbdfea1c41b9ec23",
"fileUrl": "http://www.example.com"
}]
}

0 comments on commit 9aff9b2

Please sign in to comment.