More specific Begin/End space handling

This commit is contained in:
Trey Blancher 2019-01-07 17:01:25 -05:00
parent 6e621839da
commit d8fc352bed
1 changed files with 2 additions and 2 deletions

View File

@ -18,8 +18,8 @@ misc = {} # Data structure for storing miscellaneous timecards
empty = re.compile("^\s*$") # regex for finding empty lines (and skipping them)
comment = re.compile("^\s*#") # regex for finding empty lines (and skipping them)
delim = re.compile(":\s{2}") # regex for splitting timestamp entry
begin = re.compile("^Begin\s+(?P<action>.*)\s*$")
end = re.compile("^End\s+(?P<action>.*)\s*$")
begin = re.compile("^Begin\s(?P<action>.*)\s*$")
end = re.compile("^End\s{3}(?P<action>.*)\s*$")
incident = re.compile("^(PDROP|CHG)-?\d+")
for line in fileinput.input():