We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 822ea83 commit 8528934Copy full SHA for 8528934
src/assert_snapshot.sh
@@ -35,7 +35,7 @@ function snapshot::match_with_placeholder() {
35
local escaped=$(printf '%s' "$sanitized" | sed -e 's/[.[\\^$*+?{}()|]/\\&/g')
36
local regex="^${escaped//$token/(.|\\n)*}$"
37
38
- if which perl >/dev/null 2>&1; then
+ if command -v perl >/dev/null 2>&1; then
39
echo "$actual" | REGEX="$regex" perl -0 -e '
40
my $r = $ENV{REGEX};
41
my $input = join("", <STDIN>);
0 commit comments