Fix capture of pomodoro counts above 9, oops

This commit is contained in:
benjamin melançon 2022-12-15 10:56:52 -05:00
parent 00735f3764
commit 34eb40a092

View file

@ -119,7 +119,7 @@ timelog['description'] = timelog['description'].str.strip()
# task), then multiply the time by it and remove it from the description.
# Ensure we're splitting on the same asterisk we found: Use the end of string
# signifier in the regular expression ($), and split from the right.
p = re.compile(r'\*\s*\d$')
p = re.compile(r'\*\s*\d+$')
# On some systems, using np.where worked but others failed. Why it worked is
# unknown but why it failed is because numpy where evaluates all parts, even
# the parts that will never get used because the where clause does not apply!