File tree Expand file tree Collapse file tree
src/Microsoft.ComponentDetection.Common/DockerReference Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments