Skip to content

Commit 9aff9b2

Browse files
authored
Merge pull request #13 from LearningLocker/issue/819
Fixes LearningLocker/learninglocker#819
2 parents a239144 + a3e8072 commit 9aff9b2

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

.gitattributes

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
[text]
2-
eol = lf
1+
* text eol=lf

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
# Composer.
55
vendor
66
composer.lock
7+
composer.phar
78

89
tests/assets/test.json

src/IMT.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 IMT extends RegexpAtom {
4-
protected static $pattern = '/^(application|audio|example|image|message|model|multipart|text|video)(\/[-\w\+]+)(;\s*[-\w]+\=[-\w]+)*;?$/';
4+
protected static $pattern = '/^((application|audio|example|image|message|model|multipart|text|video)(\/[-\w\+\.]+)(;\s*[-\w]+\=[-\w]+)*;?)$/';
55
}

tests/assets/test.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,14 @@
1010
},
1111
"object": {
1212
"id": "http:\/\/localhost\/moodle\/mod\/quiz\/attempt.php?attempt=48"
13-
}
13+
},
14+
"attachments": [{
15+
"contentType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
16+
"usageType": "http://www.example.com",
17+
"display": {},
18+
"description": {},
19+
"length": 100,
20+
"sha2": "9cfe7faff7054298ca87557e15a10262de8d3eee77827417fbdfea1c41b9ec23",
21+
"fileUrl": "http://www.example.com"
22+
}]
1423
}

0 commit comments

Comments
 (0)