feat: regex for CSS selectors

This commit is contained in:
karishmas6
2024-06-06 00:52:04 +05:30
parent ff3687c1fd
commit 88e6a53c6e

View File

@@ -463,6 +463,11 @@ export const getSelectors = async (page: Page, coordinates: Coordinates) => {
return rootDocument.querySelector(selector(path)) === input;
}
const regexAnySingleEscape = /[ -,\.\/:-@\[-\^`\{-~]/;
const regexSingleEscape = /[ -,\.\/:-@\[\]\^`\{-~]/;
const regexExcessiveSpaces =
/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g;
};