Allow versions like 1.6a1 (found on docs.python.org).
This commit is contained in:
parent
63ef36cd8a
commit
097614ed7f
|
@ -132,7 +132,7 @@ def clear(po_path, line):
|
|||
r"-\\ ", # Ignore "MINUS BACKSLASH SPACE" typically used in
|
||||
# formulas, like '-\ *π*' but *π* gets removed too
|
||||
r"{[a-z]*?}", # Sphinx variable
|
||||
r"'?-?\b([0-9]+\.)*[0-9]+\.[ab]?(rc)?[0-9x]+\b'?", # Versions
|
||||
r"'?-?\b([0-9]+\.)*[0-9]+\.[0-9abcrx]+\b'?", # Versions
|
||||
r"[0-9]+h", # Hours
|
||||
r"%\([a-z_]+?\)s", # Sphinx variable
|
||||
r"« . »", # Single letter examples (typically in Unicode documentation)
|
||||
|
|
Loading…
Reference in New Issue
Block a user