From def661a1560d3c313f084a8412568cae06acd0ee Mon Sep 17 00:00:00 2001 From: Kevin Zou Date: Thu, 30 Mar 2023 12:01:38 -0700 Subject: [PATCH] Update intercept.mdx pattern matching example --- docs/api/commands/intercept.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/commands/intercept.mdx b/docs/api/commands/intercept.mdx index 5a3ee92b12..ef9b681aca 100644 --- a/docs/api/commands/intercept.mdx +++ b/docs/api/commands/intercept.mdx @@ -274,7 +274,7 @@ cy.intercept({ // same as above, but using regex cy.intercept({ - method: '/PUT|PATCH/', + method: /PUT|PATCH/, url: '**/users/*', }) ```