Skip to content

Commit c40eb85

Browse files
authored
Merge pull request #362 from xxyzz/ku
[ku] remove LanguageConverter markups for ku edition
2 parents 9dbd323 + 1ec560b commit c40eb85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wikitextprocessor/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1594,7 +1594,7 @@ def expander(arg: str) -> str:
15941594
# Remove LanguageConverter markups:
15951595
# https://www.mediawiki.org/wiki/Writing_systems/Syntax
15961596
# but ignore `-{}-` template argument placeholder: #59
1597-
if not pre_expand and self.lang_code == "zh" and text != "-{}-":
1597+
if not pre_expand and self.lang_code in ["zh", "ku"] and text != "-{}-":
15981598
expanded = expanded.replace("-{", "").replace("}-", "")
15991599

16001600
return expanded

0 commit comments

Comments
 (0)