mirror of
https://github.com/creyD/prettier_action.git
synced 2026-04-16 21:30:31 +02:00
Change to sh regex
This commit is contained in:
@@ -41,8 +41,7 @@ if [ -n "$INPUT_PRETTIER_PLUGINS" ]; then
|
|||||||
for plugin in $INPUT_PRETTIER_PLUGINS; do
|
for plugin in $INPUT_PRETTIER_PLUGINS; do
|
||||||
echo "checking $plugin"
|
echo "checking $plugin"
|
||||||
# check regex against @prettier/xyz
|
# check regex against @prettier/xyz
|
||||||
REGEX='(@prettier\/)+(plugin-[a-z\-]+)'
|
if ! echo "$plugin" | grep -Eq '(@prettier\/)+(plugin-[a-z\-]+)'; then
|
||||||
if ! [[ "$plugin" =~ "$REGEX" ]]; then
|
|
||||||
echo "$plugin does not seem to be a valid @prettier/plugin-x plugin."
|
echo "$plugin does not seem to be a valid @prettier/plugin-x plugin."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user