test(cypress-github-backend): optionally record tests and run using recorded data (#2776)
This commit is contained in:
committed by
Shawn Erquhart
parent
0f60a559c1
commit
b869ce05ae
5
cypress/utils/regexp.js
Normal file
5
cypress/utils/regexp.js
Normal file
@ -0,0 +1,5 @@
|
||||
const escapeRegExp = string => {
|
||||
return string.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&');
|
||||
};
|
||||
|
||||
module.exports = { escapeRegExp };
|
Reference in New Issue
Block a user