4 lines
76 B
TypeScript
4 lines
76 B
TypeScript
|
|
export function match(value) {
|
|
return /^\d{4}-\d{2}-\d{2}$/.test(value)
|
|
} |