From bee4c4a691f10d0b1db54baf8d008ba1e50c0b49 Mon Sep 17 00:00:00 2001 From: Stuffed <stuffedgame@gmail.com> Date: Sat, 14 Apr 2018 20:11:06 +0900 Subject: [PATCH] Remove extra \r in sanityCheck --- sanityCheck | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sanityCheck b/sanityCheck index 1392ffad385..1db33d90dcf 100755 --- a/sanityCheck +++ b/sanityCheck @@ -45,9 +45,9 @@ $GREP -e "<<[ a-zA-Z]\+[^()<>]*([^()]*([^()]*)[^()<>]*>>" -- "src/*" | myprint $GREP -e "<<.*[(][^<>)]*[(][^<>)]*)\?[^<>)]*>>" -- "src/*" | myprint "MissingClosingBracket3" # Check for missing >>. e.g.: <<if $foo $GREP "<<[^<>]*[^,\"\[{"$'\r]\r'"\?$" -- 'src/*' | myprint "MissingClosingAngleBrackets" -# Check for too many >>>. e.g.: <</if>>> +# Check for too many >>>. e.g.: <</if>>> $GREP "<<[^<>]*[<>]\?[^<>]*>>>" -- "src/*.tw" | myprint "TooManyAngleBrackets" -# Check for too many <<<. e.g.: <<</if>> +# Check for too many <<<. e.g.: <<</if>> $GREP "<<<[^<>]*[<>]\?[^<>]*>>" -- "src/*.tw" | myprint "TooManyAngleBrackets" # Check for wrong capitalization on 'activeslave' and other common typos $GREP -e "\$act" --and --not -e "\$\(activeSlave\|activeArcology\|activeStandard\|activeOrgan\|activeLimbs\|activeUnits\)" -- "src/*" | myprint "WrongCapitilization" @@ -79,7 +79,7 @@ $GREP -e "<<[a-zA-Z]* = *" -- src/*.tw | myprint "BadCommand" # Check for duplicate words, e.g. with with $GREP -e " \(\b[a-zA-Z][a-zA-Z]\+\) \1\b " --and --not -e " her her " --and --not -e " you you " --and --not -e " New New " --and --not -e " that that " --and --not -e " in in " --and --not -e " is is " -- 'src/*' | myprint "Duplicate words" # Check for obsolete SugarCube macros -$GREP -E "<<display|<<click|<<.*\.contains" -- src/*.tw | myprint "ObsoleteMacro" +$GREP -E "<<display|<<click|<<.*\.contains" -- src/*.tw | myprint "ObsoleteMacro" # Check for double articles $GREP -E "\Wa an\W" -- src/*.tw | myprint "DoubleArticle" # Check for incorrect articles -- GitLab