- static lyx::regex const back("^(.*[^,])?,*\\] *$");
- // false positive from coverity
- // coverity[CHECKED_RETURN]
- regex_match(output, what, back);
- if (!what[0].matched) {
+ static regex const back("^(.*[^,])?,*\\] *$");
+ if (!regex_match(output, what, back)) {