A few corrections. PR706
This commit is contained in:
parent
c9df62cf90
commit
08f25bef50
@ -431,7 +431,7 @@ if (needZipValidation) {
|
||||
```ts
|
||||
declare function require(moduleNames: string[], onLoad: (...args: any[]) => void): void;
|
||||
|
||||
import * as Zip from "./ZipCodeValidator";
|
||||
import * as Zip from "./ZipCodeValidator";
|
||||
|
||||
if (needZipValidation) {
|
||||
require(["./ZipCodeValidator"], (ZipCodeValidator: typeof Zip) => {
|
||||
|
@ -171,7 +171,7 @@ validators["Letters only"] = new Validation.LettersOnlyValidator();
|
||||
// Show whether each string passed each validator
|
||||
for (let s of strings) {
|
||||
for (let name in validators) {
|
||||
console.log(""" + s + "" " + (validators[name].isAcceptable(s) ? " matches " : " does not match ") + name);
|
||||
console.log(`"${ s }" - ${ validators[name].isAcceptable(s) ? "matches" : "does not match" } ${ name }`);
|
||||
}
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user