Skip to content

Commit

Permalink
fix(dev): regex match for shortname (#6483)
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer committed Jul 24, 2023
1 parent a42dc4b commit a0d73dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev/src/NewComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ private static function extractPackageNameFromProtoContents(string $protoContent
private static function extractShortNameFromProtoContents(string $protoContents): string
{
if (!preg_match(
'/option \(google.api.default_host\) = "(.*).googleapis.com";/',
'/option \(google.api.default_host\) =[\n\r\s]+"(.*).googleapis.com";/',
$protoContents,
$matches)
) {
Expand Down

0 comments on commit a0d73dc

Please sign in to comment.