UNPKG

@liara/cli

Version:

The command line interface for Liara

9 lines (8 loc) 248 B
export default function checkRegexPattern(str) { const regex = /^[a-z0-9][a-z0-9\\-]+[a-z0-9]$/; return regex.test(str); } export function checkVMNameRegexPattern(str) { const regex = /^[a-z][a-z0-9\-]+$/; return regex.test(str); }