Skip to content

Commit

Permalink
rename matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
asilverman committed Oct 16, 2023
2 parents 89c2997 + e190cb2 commit 27fd979
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Bicep.Core/Syntax/ImportSpecification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ public SyntaxBase ToPath()

private static ImportSpecification CreateFromStringSyntax(StringSyntax stringSyntax, string value)
{
var matchBareSpecification = BareSpecification.Match(value);
if (!matchBareSpecification.Success)
var match = BareSpecification.Match(value);
if (!match.Success)
{
return new(
LanguageConstants.ErrorName,
Expand All @@ -92,8 +92,8 @@ private static ImportSpecification CreateFromStringSyntax(StringSyntax stringSyn
stringSyntax.Span);
}

var name = matchBareSpecification.Groups["name"].Value;
var version = matchBareSpecification.Groups["version"].Value;
var name = match.Groups["name"].Value;
var version = match.Groups["version"].Value;
var parts = value.Split('@');
var artifactAddress = parts[0];

Expand Down

0 comments on commit 27fd979

Please sign in to comment.