Skip to content

Commit

Permalink
fix: Fix BUILD file generator (accept dashes in proto options) (#3187)
Browse files Browse the repository at this point in the history
This is used in showcase protos
  • Loading branch information
vam-google committed May 1, 2020
1 parent 2bc642c commit 879ad64
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ApiVersionedDir {
Pattern.compile("(?m)^import\\s+\"(?<import>[\\w+\\\\./]+)\"\\s*;\\s*$");
private static final Pattern PROTO_OPTIONS =
Pattern.compile(
"(?m)^option\\s+(?<optName>\\w+)\\s+=\\s+\"(?<optValue>[\\w./;\\\\]+)\"\\s*;\\s*$");
"(?m)^option\\s+(?<optName>\\w+)\\s+=\\s+\"(?<optValue>[\\w./;\\\\\\-]+)\"\\s*;\\s*$");
private static final Pattern SERVICE =
Pattern.compile("(?m)^service\\s+(?<service>\\w+)\\s+(\\{)*\\s*$");
private static final Pattern LANG_PACKAGES =
Expand Down

0 comments on commit 879ad64

Please sign in to comment.