Fix broken regex for Dockerfile parsing
This commit is contained in:
parent
8c49e0d2c6
commit
91b8ecfb63
2 changed files with 19 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
import re
|
||||
|
||||
LINE_CONTINUATION_REGEX = re.compile('\s*\\\s*\n')
|
||||
LINE_CONTINUATION_REGEX = re.compile(r'(\s)*\\(\s)*\n')
|
||||
COMMAND_REGEX = re.compile('([A-Za-z]+)\s(.*)')
|
||||
|
||||
COMMENT_CHARACTER = '#'
|
||||
|
|
Reference in a new issue