Skip to content

Commit 3ad6e82

Browse files
authored
Merge pull request #3479 from ferdnyc/path-regexp
json_data: Fix path_regex to support all valid JSON files
2 parents cf69433 + 077490b commit 3ad6e82

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)