Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pretext/lib/pretext.py
Original file line number Diff line number Diff line change
Expand Up @@ -2761,11 +2761,11 @@ def _stack_process_response(qdict):
soltext = qdict["questionsamplesolutiontext"]

# Strip validation and specific feedback
qtext = re.sub("\[\[validation:(\w+)\]\]", "", qtext)
qtext = re.sub("\[\[feedback:(\w+)\]\]", "", qtext)
qtext = re.sub(r"\[\[validation:(\w+)\]\]", "", qtext)
qtext = re.sub(r"\[\[feedback:(\w+)\]\]", "", qtext)

# Iterate over inputs. For each input with ID ansid:
ansids = re.findall("\[\[input:(\w+)\]\]", qtext)
ansids = re.findall(r"\[\[input:(\w+)\]\]", qtext)
answers = []
for ansid in ansids:
ansdata = qdict["questioninputs"][ansid]
Expand Down