Closed vorburger closed 2 years ago
In #332 @edewit also removed the following from StoryParserTest
which we should add back when we fix this bug:
@Test public void blanks() throws SyntaxErrorException {
Story story = getStoryParser().parse(" \n \r\n ");
assertThat(story.getActionsList(), hasSize(1));
}
@edewit this is likey related to why you added \n
to inline JS? That's perhaps a bigger problem than the EOF...
As-is now (with #332) it could be confusing how a .story
gets "broken" if you forget the \n
in a return "hello"
.
The fix for the empty line will fix this as well
While testing the comment about how to reproduce #301 while reviewing #332, I found that adding "La Fin." at the end of dynamic-test.story WITHOUT a CR / LF (?), that makes the parser get "stuck" and loop infinitely somewhere - a DOS! 😈