Skip to content

Commit

Permalink
refactor: unnecessary capture group
Browse files Browse the repository at this point in the history
  • Loading branch information
quantizor committed Oct 12, 2023
1 parent fe5089b commit 4ab2f37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/toHaveStyleRule.js
Expand Up @@ -48,7 +48,7 @@ const getAtRules = (ast, options) => {
};

/** stylis v4 renders descendant selectors without a trailing space sometimes which trips up detection */
const removeSpaceAfterSelector = input => input.replace(/([>~+])( +)/g, '$1')
const removeSpaceAfterSelector = input => input.replace(/([>~+]) +/g, '$1')

const normalizeQuotations = (input) => input.replace(/['"]/g, '"');

Expand Down

0 comments on commit 4ab2f37

Please sign in to comment.