Skip to content
Permalink
Browse files

lang= -> lang= IV

  • Loading branch information...
JackPotte committed Sep 23, 2019
1 parent b46c75f commit f392fa305b3576a486c8dbe74649e2558dcdf72f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/fr.wiktionary.format.py
@@ -2945,7 +2945,7 @@ def treatPageByName(pageName):

# Fix
finalPageContent = finalPageContent.replace(u'|lanɡ=', u'|lang=')
regex = ur'({{pron)(\|lang=[a-zA-Z]{2, 3})(\|[a-zA-Z]{2, 3}}})'
regex = ur'({{pron)(\|lang=[a-zA-Z]{2,3})(\|[a-zA-Z]{2,3}}})'
if re.search(regex, finalPageContent):
finalPageContent = re.sub(regex, ur'\1|\3', finalPageContent)

0 comments on commit f392fa3

Please sign in to comment.
You can’t perform that action at this time.