Skip to content

Commit

Permalink
Made initial message rule more similar to the edit, reply-to, and sta…
Browse files Browse the repository at this point in the history
…tus rules
  • Loading branch information
benne238 committed Jul 2, 2021
1 parent 23abdf3 commit c9d04e5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/webqueue2api/parser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,8 @@ def error_handler(original_string, match_start_index, tokens):
pp.SkipTo(
pp.Literal(reply_from_user_start_delimiter)
| pp.Literal(action_start_delimiter)
| pp.StringEnd()
).leaveWhitespace()
).setResultsName("content").setParseAction(parse_section_by_type("initial_message"))
) | pp.SkipTo(pp.StringEnd(), include=True)
).leaveWhitespace().setResultsName("content").setParseAction(parse_section_by_type("initial_message"))

reply_from_user_rule = (
(reply_from_user_start_delimiter + pp.OneOrMore(pp.LineEnd())).suppress() +
Expand Down

0 comments on commit c9d04e5

Please sign in to comment.