Redmine#6063: move context regex out of the code block and rename the variable helpfully