Skip to content

Commit

Permalink
bring back broken regex check
Browse files Browse the repository at this point in the history
  • Loading branch information
ForsakenHarmony committed Jun 19, 2023
1 parent 3789969 commit 73d2ac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/lib/next-test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ export async function check(
for (let tries = 0; tries < maxRetries; tries++) {
try {
content = await contentFn()
if (!(regex instanceof RegExp)) {
if (typeof regex !== typeof /regex/) {
if (regex === content) {
return true
}
Expand Down

0 comments on commit 73d2ac8

Please sign in to comment.