/
githubmirror
/
wp-calypso
Обзор
Документация
Войти
/
githubmirror
/
wp-calypso
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
client/dashboard/utils/ssh.ts
5 строк
230 B
Yashwin Poojary
Hosting Dashboard > Security: Implement SSH Key (#105737)
17 сен 2025, 05:37
Не верифицирован
17 сен 2025, 05:37
719ae20
Код
Авторство
О чём код?
import { SSHKeyTypes } from '@automattic/api-core'; const sshKeyValidation = new RegExp( `^(?:${ Object.values( SSHKeyTypes ).join( '|' ) })\\s.+` ); export const isSshKeyValid = ( key: string ) => sshKeyValidation.test( key );