Commit bee74f6d by Henrik Harkonen

Change regexp to actually match spaces. Don't want to use \s either to exclude line breaks etc.

parent 1ae6579a
...@@ -151,7 +151,7 @@ class ScenarioDescription(object): ...@@ -151,7 +151,7 @@ class ScenarioDescription(object):
for pline, part in enumerate(string.splitlines()): for pline, part in enumerate(string.splitlines()):
part = part.strip() part = part.strip()
if re.match(u"%s:\W+" % language.scenario_separator + re.escape(scenario.name), part): if re.match(u"%s:[ ]+" % language.scenario_separator + re.escape(scenario.name), part):
self.line = pline + 1 self.line = pline + 1
break break
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment