Skip to content

Commit 6c238cd

Browse files
author
thk123
committed
Simplify case check
1 parent cd92829 commit 6c238cd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/util/structured_data.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ labelt::labelt(std::vector<std::string> components) : components(components)
1717
PRECONDITION(std::all_of(
1818
components.begin(), components.end(), [](const std::string &component) {
1919
return !component.empty() &&
20-
std::all_of(component.begin(), component.end(), [](const char &c) {
21-
return !(::isalpha(c)) || ::islower(c);
22-
});
20+
std::none_of(component.begin(), component.end(), ::isupper);
2321
}));
2422
}
2523

0 commit comments

Comments
 (0)