mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-09-21 04:36:49 +08:00
scripts/check-errors: update script with more tests (#20550)
This commit is contained in:
@@ -66,17 +66,34 @@ tput setaf 5
|
||||
echo
|
||||
echo Imperative mood
|
||||
tput sgr0
|
||||
grep -r Calculates
|
||||
grep -r Captures
|
||||
grep -r Checks
|
||||
grep -r Controls
|
||||
grep -r Converts
|
||||
grep -r Deploys
|
||||
grep -r Displays
|
||||
grep -r Enables
|
||||
grep -r Encodes
|
||||
grep -r Evaluates
|
||||
grep -r Executes
|
||||
grep -r Extracts
|
||||
grep -r Generates
|
||||
grep -r Gets
|
||||
grep -r Initializes
|
||||
grep -r Inspects
|
||||
grep -r Launches
|
||||
grep -r Manages
|
||||
grep -r Performs
|
||||
grep -r Prints
|
||||
grep -r Publishes
|
||||
grep -r Queries
|
||||
grep -r Resolves
|
||||
grep -r Restarts
|
||||
grep -r Scans
|
||||
grep -r Sets
|
||||
grep -r Starts
|
||||
grep -r Stops
|
||||
|
||||
tput setaf 5
|
||||
echo
|
||||
@@ -85,7 +102,10 @@ tput sgr0
|
||||
grep -r …
|
||||
grep -r –
|
||||
grep -r —
|
||||
grep -r "´"
|
||||
grep -r "‘"
|
||||
grep -r "’"
|
||||
grep -r '“'
|
||||
grep -r '”'
|
||||
grep -r \`\`
|
||||
grep -r $'\u00A0'
|
||||
@@ -95,7 +115,20 @@ grep -r $'\u200C'
|
||||
grep -r $'\u200D'
|
||||
grep -r $'\u200F'
|
||||
grep -r $'\u202F'
|
||||
grep -r $'\u3000'
|
||||
grep -r $'\uFEFF'
|
||||
grep -r «
|
||||
grep -r »
|
||||
|
||||
tput setaf 5
|
||||
echo
|
||||
echo Punctuation
|
||||
tput sgr0
|
||||
grep -r "\.\.$"
|
||||
grep -r "::$"
|
||||
grep -r " ।$"
|
||||
grep -r " :$"
|
||||
grep -r " 。"
|
||||
|
||||
tput setaf 5
|
||||
echo
|
||||
@@ -123,3 +156,5 @@ echo
|
||||
echo Use of apostrophe instead of backtick
|
||||
tput sgr0
|
||||
grep -vr ^\` | grep "'[a-zA-Z][a-zA-Z]*'"
|
||||
|
||||
echo
|
||||
|
||||
Reference in New Issue
Block a user