13 lines
300 B
TypeScript
13 lines
300 B
TypeScript
|
//@noUnusedLocals:true
|
||
|
//@noUnusedParameters:true
|
||
|
|
||
|
namespace Validation {
|
||
|
const lettersRegexp = /^[A-Za-z]+$/;
|
||
|
const numberRegexp = /^[0-9]+$/;
|
||
|
|
||
|
export class LettersOnlyValidator {
|
||
|
isAcceptable(s2: string) {
|
||
|
return lettersRegexp.test(s2);
|
||
|
}
|
||
|
}
|
||
|
}
|