File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,10 @@ inputs:
4242 description : ' If set, only warn, never error'
4343 required : false
4444 default : ' '
45+ regex :
46+ description : " Regular expression that is used to find words"
47+ required : false
48+ default : ' '
4549runs :
4650 using : ' docker'
4751 image : ' Dockerfile'
Original file line number Diff line number Diff line change @@ -44,6 +44,10 @@ echo "Ignore URI words list '${INPUT_URI_IGNORE_WORDS_LIST}'"
4444if [ " x${INPUT_URI_IGNORE_WORDS_LIST} " != " x" ]; then
4545 command_args=" ${command_args} --uri-ignore-words-list ${INPUT_URI_IGNORE_WORDS_LIST} "
4646fi
47+ echo " Regular expression that is used to find words: '${INPUT_SKIP} '"
48+ if [ " x${INPUT_REGEX} " != " x" ]; then
49+ command_args=" ${command_args} --regex ${INPUT_REGEX} "
50+ fi
4751echo " Resulting CLI options ${command_args} "
4852exec 5>&1
4953res=` { { codespell --count ${command_args} ${INPUT_PATH} ; echo $? 1>&4 ; } 1>&5 ; } 4>&1 `
You can’t perform that action at this time.
0 commit comments