Skip to content

Commit

Permalink
Update print_detection.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysa authored Sep 23, 2023
1 parent fd4c72f commit 3aa5a34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pre_commit_hooks/bash/print_detection.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ head=$(git rev-parse --verify HEAD)

display "define regex"
# BSD regex for finding Python print statements
find_print='print[[:space:](]*'
find_print='^[[:blank:]]*[^[:blank:]#]print[[:space:]](*'

display "search print"
# Save output to $out var
Expand Down

0 comments on commit 3aa5a34

Please sign in to comment.