Skip to content

Commit

Permalink
Update src/Testcontainers/Images/DockerfileArchive.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
HofmeisterAn authored Aug 21, 2023
1 parent 16e9d68 commit fe793a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Testcontainers/Images/DockerfileArchive.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public IEnumerable<IImage> GetBaseImages()

var stages = lines
.Select(line => line.Value)
.Select(line => line.Split(new [] { " AS " }, StringSplitOptions.RemoveEmptyEntries))
.Select(line => line.Split(new [] { " AS ", " As ", " aS ", " as " }, StringSplitOptions.RemoveEmptyEntries))
.Where(substrings => substrings.Length > 1)
.Select(substrings => substrings[substrings.Length - 1])
.Distinct()
Expand Down

0 comments on commit fe793a8

Please sign in to comment.