Skip to content

Commit

Permalink
Merge pull request #24 from peunsu/dev
Browse files Browse the repository at this point in the history
Made localizer skip the formatted text enclosed in `[` and `]` brackets to avoid the kubejs compatibility issue.
  • Loading branch information
peunsu committed May 12, 2024
2 parents 7825453 + 0f66113 commit 1997c41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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 @@
"utils"
]

__version__ = "1.6.0"
__version__ = "1.6.1"
2 changes: 2 additions & 0 deletions src/localizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ def _filter(self, text: str) -> bool:
return False
if text.startswith("{") and text.endswith("}"):
return False
if text.startswith("[") and text.endswith("]"):
return False
return True

def convert(self, lang: FTBLocale):
Expand Down

0 comments on commit 1997c41

Please sign in to comment.