Skip to content
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

Different delimiters for alternative solutions between instructions and javascript #116

Open
Heyrwann opened this issue Dec 12, 2023 · 1 comment

Comments

@Heyrwann
Copy link

Hello,

I was trying to set alternative solutions for a H5P flashcard, and it didn't work with the pipe symbol "|".

I checked in the js file and saw the delimiter was the slash symbol "/".

h5p-flashcards/js/flashcards.js/lines 801-804

  C.splitAlternatives = function (text, delimiter, escaper) {
    text = text || '';
    delimiter = delimiter || '/';
    escaper = escaper || '\\';

In the json files, (en.json and fr.json) :

language/.en.json/line 23 (same for the french version)

"description": "Answer (solution) for the card. Use a pipe symbol | to split alternative solutions. Use \\| if a solution should contain a |."
@otacke
Copy link
Contributor

otacke commented Dec 12, 2023

That's why there's #115

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants