(fix) RegEx in double quotes causes SyntaxWarning, should be raw single quote string (#745)

This commit is contained in:
Elias Hackradt
2025-05-17 10:21:32 +02:00
committed by GitHub
parent 6e25d2b1ea
commit c58c04502b

View File

@@ -22,7 +22,7 @@ from horilla.horilla_middlewares import _thread_locals
register = template.Library() register = template.Library()
numeric_test = re.compile("^\d+$") numeric_test = re.compile(r'^\d+$')
date_format_mapping = { date_format_mapping = {
"DD-MM-YYYY": "%d-%m-%Y", "DD-MM-YYYY": "%d-%m-%Y",