Skip to content

Commit

Permalink
chore: fix regex in formatter to match string (#1296)
Browse files Browse the repository at this point in the history
  • Loading branch information
Neenu1995 authored Dec 2, 2021
1 parent 1a34456 commit a141770
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/owlbot/java/bin/format_source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ tmpfile=$(mktemp)

for file in $list;
do
if [[ "$file" =~ ".*/samples/snippets/src/main/java/com/example/firestore/Quickstart.java" ]];
if [[ $file =~ .*/samples/snippets/src/main/java/com/example/firestore/Quickstart.java ]];
then
echo "File skipped formatting: $file"
elif [[ "$file" =~ ".*/samples/snippets/src/main/java/com/example/spanner/.*.java" ]];
elif [[ $file =~ .*/samples/snippets/src/main/java/com/example/spanner/.*.java ]];
then
echo "File skipped formatting: $file"
else
Expand Down

0 comments on commit a141770

Please sign in to comment.