Skip to content

Commit

Permalink
fix: include '@' symbol in problem id regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Feb 19, 2024
1 parent 7011204 commit 8d6b3f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/get_problem_id.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
-- either the problem id is at the end of the object ID
-- or is followed by '/answer' or '/hint'
{% macro get_problem_id(object_id) %}
regexpExtract(object_id, 'xblock/([\w\d-\+:]*@problem\+block@[\w\d][^_]*)(_\d_\d)?', 1)
regexpExtract(object_id, 'xblock/([\w\d-\+:@]*@problem\+block@[\w\d][^_]*)(_\d_\d)?', 1)
{% endmacro %}

0 comments on commit 8d6b3f5

Please sign in to comment.