-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New line in "authorComments" in metadata: h5p file can't be imported #96
Comments
@JsBergbau I agree, the regular expression doesn't cover this case. Would your mind creating a pull request to fix the issue? |
Done #97 |
@JsBergbau Cool! Hope the H5P core team will find time to take care of it soon. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you enter text in the field "Autor comments" and hit Enter a new line is generated, like here
In the JSON is then
As long as the h5p stays in your LMS no problem, but when you try to import in another sytem it fails
I think the error is in https://github.com/h5p/h5p-php-library/blob/master/h5p.classes.php
When you try it here https://regex101.com/r/IS3lUT/1 it finds no match. When you remove the second line, it matches again.
I've tried in course presentation and Find the words, in both this error occurs.
The text was updated successfully, but these errors were encountered: