summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rtslib/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rtslib/utils.py b/rtslib/utils.py
index 180056b..b2e74a8 100644
--- a/rtslib/utils.py
+++ b/rtslib/utils.py
@@ -128,7 +128,7 @@ def get_blockdev_size(path):
return get_size("/sys/block/%s" % name)
except IOError:
# Maybe it's a partition?
- m = re.search(r'^([a-z0-9_-!]+)(\d+)$', name)
+ m = re.search(r'^([a-z0-9_\-!]+)(\d+)$', name)
if m:
# If disk name ends with a digit, Linux sticks a 'p' between it and
# the partition number in the blockdev name.