Commit bfe69221 authored by Ryan Herbert's avatar Ryan Herbert
Browse files parse_id string select last occurrence of parens

parent 5a1c62a6
Pipeline #19940 passed with stages
in 44 seconds
......@@ -126,7 +126,7 @@ class SampleSet(object):
def parse_id_string(self, string):
value = string[string.find("(")+1:string.find(")")]
value = string[string.rfind("(")+1:string.rfind(")")]
return int(value)
raise ValueError('invalid input %s' % string)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment