Skip to content

Commit 8528934

Browse files
committed
fix: assert_snapshot using command instead of which
1 parent 822ea83 commit 8528934

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/assert_snapshot.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function snapshot::match_with_placeholder() {
3535
local escaped=$(printf '%s' "$sanitized" | sed -e 's/[.[\\^$*+?{}()|]/\\&/g')
3636
local regex="^${escaped//$token/(.|\\n)*}$"
3737

38-
if which perl >/dev/null 2>&1; then
38+
if command -v perl >/dev/null 2>&1; then
3939
echo "$actual" | REGEX="$regex" perl -0 -e '
4040
my $r = $ENV{REGEX};
4141
my $input = join("", <STDIN>);

0 commit comments

Comments
 (0)