Skip to content

Commit

Permalink
Do not capture whitespace in Dockerfile image link (#516)
Browse files Browse the repository at this point in the history
* Do not capture whitespace in Dockerfile image link

* Remove whitespace e2e fixture
  • Loading branch information
MatthewDG authored and stefanbuck committed Sep 28, 2018
1 parent a0cab84 commit daba745
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/helper-grammar-regex-collection/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const TYPESCRIPT_REFERENCE = regex`
`;

export const DOCKER_FROM = regex`
FROM \s (?<$1>[^\n]*)
FROM \s+ (?<$1>[^\n]*)
`;

export const DOCKER_ENTRYPOINT = regex`
Expand Down
1 change: 1 addition & 0 deletions packages/helper-grammar-regex-collection/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ const fixtures = {
['FROM foo', ['foo']],
['FROM foo:1.2.3', ['foo:1.2.3']],
['FROM foo:1.2.3-alpha', ['foo:1.2.3-alpha']],
['FROM foo:1.2.3-alpha', ['foo:1.2.3-alpha']],
['FROM foo/bar', ['foo/bar']],
],
invalid: [
Expand Down

0 comments on commit daba745

Please sign in to comment.