[READ-ONLY] Mirror of https://github.com/bombshell-dev/clack. Effortlessly build beautiful command-line apps bomb.sh/docs/clack/basics/getting-started/
cli command-line command-line-app node prompt prompts
5

Configure Feed

Select the types of activity you want to include in your feed.

password: split()+map()+join() -> replaceAll() (#74)

authored by

Nate Moore and committed by
GitHub
(Feb 21, 2023, 9:12 PM -0600) 68f5c56f 46055478

+1 -4
+1 -4
packages/core/src/prompts/password.ts
··· 11 11 return this._cursor; 12 12 } 13 13 get masked() { 14 - return this.value 15 - .split('') 16 - .map(() => this._mask) 17 - .join(''); 14 + return this.value.replaceAll(/./g, this._mask); 18 15 } 19 16 constructor({ mask, ...opts }: PasswordOptions) { 20 17 super(opts);