diff options
Diffstat (limited to 'ru_RU/pythonpath/lightproof_impl_ru_RU.py')
-rw-r--r-- | ru_RU/pythonpath/lightproof_impl_ru_RU.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ru_RU/pythonpath/lightproof_impl_ru_RU.py b/ru_RU/pythonpath/lightproof_impl_ru_RU.py index 22eb59e..ffbf054 100644 --- a/ru_RU/pythonpath/lightproof_impl_ru_RU.py +++ b/ru_RU/pythonpath/lightproof_impl_ru_RU.py @@ -125,14 +125,14 @@ def suggest(rLoc, word): # get the nth word of the input string or None def word(s, n): - a = re.match("(?u)( [-.\w%%]+){" + str(n-1) + "}( [-.\w%%]+)", s) + a = re.match("(?u)( [-.\\w%%]+){" + str(n-1) + "}( [-.\\w%%]+)", s) if not a: return '' return a.group(2)[1:] # get the (-)nth word of the input string or None def wordmin(s, n): - a = re.search("(?u)([-.\w%%]+ )([-.\w%%]+ ){" + str(n-1) + "}$", s) + a = re.search("(?u)([-.\\w%%]+ )([-.\\w%%]+ ){" + str(n-1) + "}$", s) if not a: return '' return a.group(1)[:-1] |