blob: 6da22950a073daa391bb41e3f10e7861dc92af25 [file] [log] [blame]
// 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 isCounterIncrementCustomIdentValue(value) {
const valueLowerCase = value.toLowerCase();
if (
keywords.counterIncrementKeywords.has(valueLowerCase) ||
Number.isFinite(Number.parseInt(valueLowerCase, 10))
) {
return false;
}
return true;
}
module.exports = isCounterIncrementCustomIdentValue;