Add support for dashes in proto file names.

PiperOrigin-RevId: 469853045
pull/13171/head
Protobuf Team Bot 2 years ago committed by Copybara-Service
parent ce32d9d68f
commit 4e979b8d13
  1. 2
      upbc/common.cc

@ -43,7 +43,7 @@ std::string StripExtension(absl::string_view fname) {
} }
std::string ToCIdent(absl::string_view str) { std::string ToCIdent(absl::string_view str) {
return absl::StrReplaceAll(str, {{".", "_"}, {"/", "_"}}); return absl::StrReplaceAll(str, {{".", "_"}, {"/", "_"}, {"-", "_"}});
} }
std::string ToPreproc(absl::string_view str) { std::string ToPreproc(absl::string_view str) {

Loading…
Cancel
Save