Skip to content

Commit

Permalink
Simplify PO file regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake-Madden committed Jun 17, 2024
1 parent 9cfd9e8 commit d40dce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/po_file_review.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace i18n_check
static const std::wstring_view MSGSTR0{ L"msgstr[0] \"" };
static const std::wstring_view MSGSTR1{ L"msgstr[1] \"" };
// type of printf formatting the string uses
static const std::wregex entryLineRegEx{ LR"(^#, (.*)+$)" };
static const std::wregex entryLineRegEx{ LR"(^#, ([,a-z \-]+)+$)" };
// captures the "no-" prefix (in case it's in there) so that we know
// to ignore this entry later
static const std::wregex printfResourceRegEx{ LR"(\b([a-zA-Z\-])+\b)" };
Expand Down

0 comments on commit d40dce6

Please sign in to comment.