mirror of
https://github.com/pepa65/tldr-bash-client.git
synced 2024-11-14 07:51:06 +01:00
Allow for Chinese full stop when linting
(does the official spec allow for it??)
This commit is contained in:
parent
538acb9b7e
commit
ff1fabc6b1
1 changed files with 1 additions and 1 deletions
2
tldr
2
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} = '.' ]] && 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"
|
||||
|
|
Loading…
Reference in a new issue