mirror of
https://github.com/vastxie/99AI.git
synced 2024-11-16 11:42:25 +08:00
12 lines
329 B
JavaScript
12 lines
329 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.maskCrami = void 0;
|
|
function maskCrami(str) {
|
|
if (str.length !== 16) {
|
|
throw new Error('Invalid input');
|
|
}
|
|
const masked = str.substring(0, 6) + '****' + str.substring(10);
|
|
return masked;
|
|
}
|
|
exports.maskCrami = maskCrami;
|