Files
NapCatQQ/.pnpm-store/v3/files/bd/72609d0a9144cf63293ba092a291d9659003a8fa4e7913ab84fd4aa3acd11c8086851edcc1b8b306518cfc5f520cbddaf9456000f3ab3809d52f0f77ceea0d
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

20 lines
513 B
Plaintext

/** Used to match a single whitespace character. */
var reWhitespace = /\s/;
/**
* Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
* character of `string`.
*
* @private
* @param {string} string The string to inspect.
* @returns {number} Returns the index of the last non-whitespace character.
*/
function trimmedEndIndex(string) {
var index = string.length;
while (index-- && reWhitespace.test(string.charAt(index))) {}
return index;
}
export default trimmedEndIndex;