intial
This commit is contained in:
18
node_modules/eslint-plugin-svelte/lib/utils/css-utils/utils.js
generated
vendored
Normal file
18
node_modules/eslint-plugin-svelte/lib/utils/css-utils/utils.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Checks whether given property name has vender prefix
|
||||
*/
|
||||
export function hasVendorPrefix(prop) {
|
||||
return Boolean(getVendorPrefix(prop));
|
||||
}
|
||||
/**
|
||||
* Get the vender prefix from given property name
|
||||
*/
|
||||
export function getVendorPrefix(prop) {
|
||||
return /^-\w+-/u.exec(prop)?.[0] || '';
|
||||
}
|
||||
/**
|
||||
* Strip the vender prefix
|
||||
*/
|
||||
export function stripVendorPrefix(prop) {
|
||||
return prop.slice(getVendorPrefix(prop).length);
|
||||
}
|
||||
Reference in New Issue
Block a user