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<Self, Self::Err>{
-        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)