We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f66590 commit b51fb1bCopy full SHA for b51fb1b
beta_code/beta_code.py
@@ -45,4 +45,6 @@ def beta_code_to_greek(beta_code):
45
return sigma_to_end_of_word_sigma(u''.join(greek_characters))
46
47
def sigma_to_end_of_word_sigma(string):
48
- return re.sub(ur'σ(?=[,.:;·\s]|$)', u'ς', string)
+ regex = re.compile(u'σ(?=[,.:;·\s]|$)')
49
+
50
+ return re.sub(regex, u'ς', string)
0 commit comments