diff --git a/scriptedbrowser/main.php b/scriptedbrowser/main.php index 976058a..db36634 100644 --- a/scriptedbrowser/main.php +++ b/scriptedbrowser/main.php @@ -205,6 +205,8 @@ class Main $this->control->mousemove(960, 500); $steps = file_get_contents($instructions); + $steps = preg_replace('/[\r\n]/', '', $steps); + $steps = preg_replace('!/\*.*\*/!', '', $steps); $plans = json_decode($steps, true); if ($plans === null) { echo "error reading config\n";