REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.51 KB
Close
/home/byroehnu/easepaybiz.easetack.com/node_modules/eslint/lib/shared/string-utils.js
Text
Base64
/** * @fileoverview Utilities to operate on strings. * @author Stephen Wade */ "use strict"; //------------------------------------------------------------------------------ // Helpers //------------------------------------------------------------------------------ // eslint-disable-next-line no-control-regex -- intentionally including control characters const ASCII_REGEX = /^[\u0000-\u007f]*$/u; /** @type {Intl.Segmenter | undefined} */ let segmenter; //------------------------------------------------------------------------------ // Public Interface //------------------------------------------------------------------------------ /** * Converts the first letter of a string to uppercase. * @param {string} string The string to operate on * @returns {string} The converted string */ function upperCaseFirst(string) { if (string.length <= 1) { return string.toUpperCase(); } return string[0].toUpperCase() + string.slice(1); } /** * Counts graphemes in a given string. * @param {string} value A string to count graphemes. * @returns {number} The number of graphemes in `value`. */ function getGraphemeCount(value) { if (ASCII_REGEX.test(value)) { return value.length; } segmenter ??= new Intl.Segmenter("en-US"); // en-US locale should be supported everywhere let graphemeCount = 0; // eslint-disable-next-line no-unused-vars -- for-of needs a variable for (const unused of segmenter.segment(value)) { graphemeCount++; } return graphemeCount; } module.exports = { upperCaseFirst, getGraphemeCount, };
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 19
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
.htaccess
127 B
lr--r--r--
2026-03-14 01:49:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ajv.js
931 B
lrw-r--r--
2026-03-05 00:20:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
assert.js
524 B
lrw-r--r--
2026-03-05 00:20:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ast-utils.js
897 B
lrw-r--r--
2026-03-05 00:20:11
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
deep-merge-arrays.js
1.54 KB
lrw-r--r--
2026-03-05 00:20:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
directives.js
413 B
lrw-r--r--
2026-03-05 00:20:17
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
flags.js
2.27 KB
lrw-r--r--
2026-03-05 00:20:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
logging.js
635 B
lrw-r--r--
2026-03-05 00:20:21
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
naming.js
2.88 KB
lrw-r--r--
2026-03-05 00:20:21
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
option-utils.js
1.24 KB
lrw-r--r--
2026-03-05 00:20:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
relative-module-resolver.js
1.00 KB
lrw-r--r--
2026-03-05 00:20:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
runtime-info.js
5.02 KB
lrw-r--r--
2026-03-05 00:20:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
serialization.js
2.06 KB
lrw-r--r--
2026-03-05 00:20:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
severity.js
1.15 KB
lrw-r--r--
2026-03-05 00:20:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
stats.js
638 B
lrw-r--r--
2026-03-05 00:20:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
string-utils.js
1.51 KB
lrw-r--r--
2026-03-05 00:20:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
text-table.js
2.16 KB
lrw-r--r--
2026-03-05 00:20:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
translate-cli-options.js
5.88 KB
lrw-r--r--
2026-03-05 00:20:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
traverser.js
4.74 KB
lrw-r--r--
2026-03-05 00:20:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).