Skip to content

Commit 077490b

Browse files
committed
json_data: Fix path_regex
Support all valid JSON data (as defined by the RFC 8259 update).
1 parent 564db2b commit 077490b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/classes/json_data.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
from classes.app import get_app
4040

4141
# Compiled path regex
42-
path_regex = re.compile(r'\"(image|path)\":.*?\"(.*?)\"')
42+
path_regex = re.compile(r'"(image|path)"\s*:\s*"(.*?)"')
4343
path_context = {}
4444

4545

0 commit comments

Comments
 (0)