first commit
This commit is contained in:
25
node_modules/stylelint/lib/utils/isCounterResetCustomIdentValue.cjs
generated
vendored
Normal file
25
node_modules/stylelint/lib/utils/isCounterResetCustomIdentValue.cjs
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
// NOTICE: This file is generated by Rollup. To modify it,
|
||||
// please instead edit the ESM counterpart and rebuild with Rollup (npm run build).
|
||||
'use strict';
|
||||
|
||||
const keywords = require('../reference/keywords.cjs');
|
||||
|
||||
/**
|
||||
* Check value is a custom ident
|
||||
*
|
||||
* @param {string} value
|
||||
*/
|
||||
function isCounterResetCustomIdentValue(value) {
|
||||
const valueLowerCase = value.toLowerCase();
|
||||
|
||||
if (
|
||||
keywords.counterResetKeywords.has(valueLowerCase) ||
|
||||
Number.isFinite(Number.parseInt(valueLowerCase, 10))
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
module.exports = isCounterResetCustomIdentValue;
|
||||
Reference in New Issue
Block a user