Skip to content

Commit

Permalink
Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
sainthkh committed Apr 21, 2022
1 parent 86ade70 commit 81f8a85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/driver/src/cy/chai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const whitespace = /\s/g
const valueHasLeadingOrTrailingWhitespaces = /\*\*'\s+|\s+'\*\*/g
const imageMarkdown = /!\[.*?\]\(.*?\)/g
const doubleslashRe = /\\\\/g
const escapedDoubleslashRe = /__doulbe_slash__/g
const escapedDoubleslashRe = /__double_slash__/g

type CreateFunc = ((specWindow, state, assertFn) => ({
chai: Chai.ChaiStatic
Expand Down Expand Up @@ -106,7 +106,7 @@ chai.use((chai, u) => {
return
})

const escapeDoubleSlash = (str: string) => str.replace(doubleslashRe, '__doulbe_slash__')
const escapeDoubleSlash = (str: string) => str.replace(doubleslashRe, '__double_slash__')
const restoreDoubleSlash = (str: string) => str.replace(escapedDoubleslashRe, '\\\\')

// remove any single quotes between our **,
Expand Down

0 comments on commit 81f8a85

Please sign in to comment.