first commit
This commit is contained in:
13
node_modules/stylelint/lib/utils/hasPrefix.mjs
generated
vendored
Normal file
13
node_modules/stylelint/lib/utils/hasPrefix.mjs
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import { prefixes } from '../reference/prefixes.mjs';
|
||||
|
||||
const HAS_PREFIX_REGEX = new RegExp(`(?:${[...prefixes].join('|')})`, 'i');
|
||||
|
||||
/**
|
||||
* Check if a string contains any prefix
|
||||
*
|
||||
* @param {string} string
|
||||
* @returns {boolean}
|
||||
*/
|
||||
export default function hasPrefix(string) {
|
||||
return HAS_PREFIX_REGEX.test(string);
|
||||
}
|
||||
Reference in New Issue
Block a user