From 7ab20f36a7c4ea72370437947dcfbc24639a8a72 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 12 Sep 2023 18:48:07 -0700 Subject: [PATCH] fix parse --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index d88fb7e..5ab8fc8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -337,9 +337,9 @@ struct ParseScriptActionErr; impl std::str::FromStr for ScriptActionParseResult { type Err=ParseScriptActionErr; fn from_str(s: &str) -> Result{ - if s=="pass"||s=="1"{ + if s=="pass\n"||s=="1\n"{ Ok(Self::Pass) - }else if s=="block"{ + }else if s=="block\n"{ Ok(Self::Block) }else{ Err(ParseScriptActionErr)