YAML coverage parser bug fixed -- handling \n
and \t
correctly
This commit is contained in:
parent
2ec9c7cc1a
commit
99595f6a2a
3 changed files with 3 additions and 6 deletions
|
@ -44,6 +44,8 @@ def search(needle, haystack):
|
|||
# replacing %s, %d, etc. with regex wildcards, so the variable messages
|
||||
# within the dungeon definition will actually match
|
||||
needle = re.escape(needle) \
|
||||
.replace("\\n", "\n") \
|
||||
.replace("\\t", "\t") \
|
||||
.replace("\%S", ".*") \
|
||||
.replace("\%s", ".*") \
|
||||
.replace("\%d", ".*") \
|
||||
|
|
|
@ -14,10 +14,6 @@ You're at sw end.
|
|||
|
||||
The grate is locked.
|
||||
|
||||
> yes
|
||||
|
||||
Guess again.
|
||||
|
||||
> blast
|
||||
|
||||
There is a loud explosion, and a twenty-foot hole appears in the far
|
||||
|
@ -25,7 +21,7 @@ wall, burying the dwarves in the rubble. You march through the hole
|
|||
and find yourself in the main office, where a cheering band of
|
||||
friendly elves carry the conquering adventurer off into the sunset.
|
||||
|
||||
You scored 423 out of a possible 430, using 469 turns.
|
||||
You scored 423 out of a possible 430, using 468 turns.
|
||||
|
||||
Your score puts you in Master Adventurer Class A.
|
||||
|
||||
|
|
|
@ -4,5 +4,4 @@ n
|
|||
resume
|
||||
y
|
||||
saveresume_win.adv
|
||||
yes
|
||||
blast
|
Loading…
Add table
Add a link
Reference in a new issue