From c65bb3fb1ddfcf34e55ad8cd7a35e2ffba448f9f Mon Sep 17 00:00:00 2001 From: "gitlab.com/pepa65" Date: Wed, 31 May 2023 05:39:19 +0700 Subject: [PATCH] Debug full stop --- tldr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tldr b/tldr index afe600f..61370a6 100755 --- a/tldr +++ b/tldr @@ -326,7 +326,7 @@ Display_tldr(){ Out "$TNL$TSP$T${REPLY:2}$XT" ;; '>') ((${#REPLY} <= 3)) && Unlinted "No valid desciption" [[ ! ${REPLY:1:1} = ' ' ]] && Unlinted "2nd character no space" - [[ ! ${REPLY: -1} = '.' || ! ${REPLY: -1} = '。' ]] && Unlinted "Description doesn't end in full stop" + [[ ! ${REPLY: -1} = '.' && ! ${REPLY: -1} = '。' ]] && Unlinted "Description doesn't end in full stop" Out "$DNL$DSP$D${REPLY:2}$XD" DNL= ;; '-') ((newfmt)) && Unlinted "Bad first character"