Skip to content

Commit

Permalink
fix: replace hyphens with suffixes when cleaning proto filename
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Apr 16, 2022
1 parent 1f1d5a6 commit 71b9f27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protoletariat/fdsetgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def _remove_proto_suffix(name: str) -> str:
>>> _remove_proto_suffix("a/b.proto")
'a/b'
"""
return _PROTO_SUFFIX_PATTERN.sub(r"\1", name)
return _PROTO_SUFFIX_PATTERN.sub(r"\1", name).replace("-", "_")


def _should_ignore(fd_name: str, patterns: Sequence[str]) -> bool:
Expand Down

0 comments on commit 71b9f27

Please sign in to comment.