Add missing MULTILINE flag, so that regex can properly match the state.