From 7187e808624ad954ff44d24062d3255f245340d6 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Sun, 10 Oct 2021 01:18:07 -0400 Subject: command: remove more characters that could mess up grep --- swipeGuess.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'swipeGuess.sh') diff --git a/swipeGuess.sh b/swipeGuess.sh index fe52bbd..092c1ee 100755 --- a/swipeGuess.sh +++ b/swipeGuess.sh @@ -1,7 +1,7 @@ #!/bin/sh swipeToQuery(){ - swipe=$(echo "$1" | tr -d "'") + swipe=$(echo "$1" | tr -d "'.\*\"\\^$\(\)") printf '^' printf "${swipe:0:2}" if test "${swipe:2}"; then -- cgit 1.4.1