passing hex/oct/bin tests for #327
This commit is contained in:
1 parent
d15203162a
commit
b48d0bf622
2 files changed
+10
-10
No files matched your search
@@ -136,11 +136,10 @@ class Script(object):
|
||||
last word part. To ignore certain strange patterns with dots, just
|
||||
use regex.
|
||||
"""
|
||||
dots = re.search('^\.|([\d.]+)\.$', path)
|
||||
dots = re.search('^\.|((?:0[xbo])?[\d.]+)\.$', path)
|
||||
if dots:
|
||||
literal = dots.group(1)
|
||||
print(literal)
|
||||
if re.search('\d\.|\.{3}', literal or ''):
|
||||
if re.match('0[xbo][\da-fA-F]+$|\d\.$|\.{3}$', literal or ''):
|
||||
return True
|
||||
return False
|
||||
return True
|
||||
|
||||
Reference in new issue
Block a user