Skip to content

Commit

Permalink
fix: Fix the linter handling numeric headers
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosfpr authored and alandefreitas committed Apr 29, 2022
1 parent 546381f commit 0b47880
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dev-tools/linter/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ main(int argc, char **argv) {
std::istreambuf_iterator<char>()
};
std::regex include_guard_expression(
"(^|\n) *# *ifndef *([a-zA-Z_/\\. ]+)");
"(^|\n) *# *ifndef *([a-zA-Z0-9_/\\. ]+)");
std::smatch include_guard_match;
if (std::regex_search(
file_content,
Expand Down
2 changes: 1 addition & 1 deletion include/small/string.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5127,4 +5127,4 @@ namespace std {
};
} // namespace std

#endif // SMALL_UTF8_STRING_H
#endif // SMALL_STRING_HPP

0 comments on commit 0b47880

Please sign in to comment.