UNPKG
vanzy-protect
Version:
latest (1.0.5)
2.5.1
2.0.0
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
Epic Obfuscator Yeahhh
t.me/vashinty
vanzy-protect
/
out
/
util
/
calcLength.js
9 lines
(8 loc)
•
254 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
calcLength
=
void
0
;
function
calcLength
(
str
) {
const
_str = str.
split
(
/\u001B\[[0-9]{1,2}m/gm
).
join
(
''
);
return
_str.
length
; }
exports
.
calcLength
= calcLength;