Seek and offset regex are less greedy now
This commit is contained in:
parent
5d642ad6d6
commit
4502f400c7
@ -59,8 +59,8 @@ class ConsoleUI(threading.Thread):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
def _tryAdvancedCommands(self, data):
|
def _tryAdvancedCommands(self, data):
|
||||||
o = re.match(r"^(?:o|offset)\ ([+-])?\ ?(.+)$", data)
|
o = re.match(r"^(?:o|offset)\ ([+-])?\ ?(\d+[:\.]?)+$", data)
|
||||||
s = re.match(r"^(?:s|seek)?\ ?([+-])?\ ?(.+)$", 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)
|
||||||
t = utils.parseTime(o.group(2))
|
t = utils.parseTime(o.group(2))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user