fix cartero_extends regex to not require newline at the end