Update consoleUI.py - Allow / sign for rel offset

This commit is contained in:
Etoh 2012-12-27 14:31:09 +00:00
parent 9305b5e97b
commit 192153ab63
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class ConsoleUI(threading.Thread):
return None
def _tryAdvancedCommands(self, data):
o = re.match(r"^(?:o|offset)\ ?(?P<sign>[+-])?(?P<time>\d+(?:[^\d\.](?:\d+)){0,2}(?:\.(?:\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)?\ ?(?P<sign>[+-])?(?P<time>\d+(?:[^\d\.](?:\d+)){0,2}(?:\.(?:\d+))?)$", data)
if(o):
sign = self._extractSign(o.group('sign'))