This commit is contained in:
2026-11-02 12:42:04 +00:00
commit e4e28174bf
5498 changed files with 1735888 additions and 0 deletions

21
node_modules/eslint/lib/rules/utils/string-utils.js generated vendored Normal file
View File

@@ -0,0 +1,21 @@
/**
* @fileoverview Common utils for strings.
*/
"use strict";
//------------------------------------------------------------------------------
// Public Interface
//------------------------------------------------------------------------------
const LETTER_PATTERN = /\p{L}/u;
/**
* Checks if the given string contains a letter.
* @param {string} string The string to test.
* @returns {boolean} `true` if the string contains a letter.
*/
function containsLetter(string) {
return LETTER_PATTERN.test(string);
}
module.exports = {
LETTER_PATTERN,
containsLetter,
};