Skip to content

Commit

Permalink
fix: クエストの説明の中にダブルクオーテーションが存在した場合に翻訳後にダブルクオーテーションが外れる問題の解消
Browse files Browse the repository at this point in the history
  • Loading branch information
Y-RyuZU committed Jul 27, 2024
1 parent 34da756 commit e4bc2e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@

USER = 'Y-RyuZU'
REPO = 'MinecraftModsLocalizer'
VERSION = 'v2.0.2'
VERSION = 'v2.0.3'
2 changes: 1 addition & 1 deletion src/quests.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def translate_quests_from_snbt(file_path):
description_pattern = r'description: \[\s*([\s\S]*?)\s*\]'
description_matches = re.findall(description_pattern, content)
for match in description_matches:
for inner_match in re.findall(r'"(.*?)"', match):
for inner_match in re.findall(r'(?<!\\)"(.*?)(?<!\\)"', match):
if inner_match: # Non-empty strings
extracted_strings.append(inner_match)

Expand Down

0 comments on commit e4bc2e7

Please sign in to comment.