1
1
mirror of https://github.com/primer/css.git synced 2024-12-11 11:16:04 +03:00
css/tools/stylelint-selector-no-utility/match.js
2018-11-08 09:58:56 -08:00

6 lines
145 B
JavaScript

const UTILITY_CLASS_PATTERN = /\.[-\w]+/g
module.exports = function matchUtilities(selector) {
return selector.match(UTILITY_CLASS_PATTERN)
}