Update consoleUI.py - Fix offset pattern
This commit is contained in:
parent
fa00d8cb3e
commit
0757f4f8cd
@ -59,7 +59,7 @@ class ConsoleUI(threading.Thread):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
def _tryAdvancedCommands(self, data):
|
def _tryAdvancedCommands(self, data):
|
||||||
o = re.match(r"^(?:o|offset)\ ([+-])?\ ?(\d+[:\.]?)+$", data)
|
o = re.match(r"^(?:o|offset)\ ?(?P<sign>[+-])?(?P<time>\d+(?:[^\d\.](?:\d+)){0,2}(?:\.(?:\d+))?)$", data)
|
||||||
s = re.match(r"^(?:s|seek)?\ ?([+-])?\ ?(\d+[:\.]?)+$", data) #careful! s will match o as well
|
s = re.match(r"^(?:s|seek)?\ ?([+-])?\ ?(\d+[:\.]?)+$", data) #careful! s will match o as well
|
||||||
if(o):
|
if(o):
|
||||||
sign = self._extractRegexSign(o)
|
sign = self._extractRegexSign(o)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user