Fix an issue causing the regex to not match on some lines