mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
19 lines
263 B
Bash
19 lines
263 B
Bash
#!/bin/bash
|
|
|
|
read new_task
|
|
|
|
re='(.*)([Tt])eh(.*)'
|
|
if [[ $new_task =~ $re ]]
|
|
then
|
|
while [[ $new_task =~ $re ]]
|
|
do
|
|
new_task=${BASH_REMATCH[1]}${BASH_REMATCH[2]}he${BASH_REMATCH[3]}
|
|
done
|
|
|
|
echo "Auto-corrected 'teh' --> 'the'"
|
|
fi
|
|
|
|
echo $new_task
|
|
exit 0
|
|
|
|
|