Fix broken regex for Dockerfile parsing

This commit is contained in:
Joseph Schorr 2014-09-12 14:01:10 -04:00
parent 8c49e0d2c6
commit 91b8ecfb63
2 changed files with 19 additions and 1 deletions

View file

@ -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 = '#'