2
0
Fork 0
mirror of https://github.com/pepa65/tldr-bash-client.git synced 2024-11-16 16:48:25 +01:00

Debug full stop

This commit is contained in:
gitlab.com/pepa65 2023-05-31 05:39:19 +07:00
parent ea512b442c
commit c65bb3fb1d

2
tldr
View file

@ -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"