Skip to content

Commit 397444b

Browse files
jpinzCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent ffe222d commit 397444b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Microsoft.ComponentDetection.Common/DockerReference/DockerReferenceUtility.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ public static class DockerReferenceUtility
5959
// Matches token-replacement placeholders wrapped in a matching '#' or '!', e.g. #imageTag#,
6060
// #cs_containerRegistryLoginServerUrl#, or !imageTag!. A string surrounded by the same '#' or
6161
// '!' delimiter is almost always an unsubstituted template variable (Azure DevOps token
62-
// replacement and similar), so it is skipped silently instead of surfacing as a misleading
63-
// docker-reference parse failure. The backreference requires the closing delimiter to match
62+
// replacement and similar), so it is skipped (and may be logged as a warning) instead of
63+
// surfacing as a misleading docker-reference parse failure. The backreference requires the closing delimiter to match
6464
// the opening one, so a mismatched stray '#' or '!' is left to GetInvalidReferenceCharacters.
6565
private static readonly Regex DelimiterWrappedTokenRegex = new(@"([#!])[^#!]+\1");
6666

0 commit comments

Comments
 (0)