Skip to content

Commit

Permalink
feat (translator): divert accepting accent
Browse files Browse the repository at this point in the history
  • Loading branch information
santanche committed Sep 7, 2020
1 parent d7b1f27 commit fcf0699
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/adonisjs/public/templates/simple/case/quiz_sequence.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Write here the **stem** of your question.
* Next Question -> Flow.Next

# Feedback (quiz)
# Feedback (quiz, end)

{{feedback
Write here the **feedback**.
Expand All @@ -32,12 +32,12 @@ Write here the **feedback**.
* [Enter References](References)
}}

* Next Question -> Flow.Next

# Note (note)

**You answered:** ^Previous.input1^.
<br>



^parameter^

___ Flow ___
Expand Down
4 changes: 1 addition & 3 deletions src/adonisjs/public/templates/simple/case/quiz_short.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Presentation (quiz)
# Presentation (quiz, end)

Write here the **stem** of your quiz.

Expand All @@ -8,8 +8,6 @@ Write here the **stem** of your quiz.
+ Distractor 2 <-> "Feedback for Distractor 2"
+ Distractor 3 <-> "Feedback for Distractor 3"
* Next Case -> Case.Next

# Note (note)

**You answered:** ^Previous.input1^.
Expand Down
2 changes: 1 addition & 1 deletion src/adonisjs/public/translator/translator.js
Original file line number Diff line number Diff line change
Expand Up @@ -2170,7 +2170,7 @@ class Translator {
mark: /^[ \t]*(?:\(([\w\.]+)[ \t]*(==|>|<|>=|<=|&gt;|&lt;|&gt;=|&lt;=)[ \t]*((?:"[^"\n\r\f]+")|(?:\-?\d+(?:\.\d+)?)|(?:[\w\.]+))\)[ \t]*)?-(?:(?:&gt;)|>)[ \t]*([^"\n\r\f]+)(?:"([^"\n\r\f]+)")?[ \t]*$/im
},
divert: {
mark: /(?:(\w+)|"([^"]+)")(?:[ \t])*((?:(?:(?:&lt;)|<)?-(?:(?:&gt;)|>))|(?:\(-\)))[ \t]*(?:(\w[\w.]*)|"([^"]*)")/im,
mark: /(?:([^&<> \t\n\r\f][^&<> \t\n\r\f]*)|"([^"]+)")(?:[ \t])*((?:(?:(?:&lt;)|<)?-(?:(?:&gt;)|>))|(?:\(-\)))[ \t]*(?:(\w[\w.]*)|"([^"]*)")/im,
inline: true
},
entity: {
Expand Down

0 comments on commit fcf0699

Please sign in to comment.