A few corrections. PR706

This commit is contained in:
zhongsp 2018-01-11 13:15:50 +08:00
parent c9df62cf90
commit 08f25bef50
2 changed files with 2 additions and 2 deletions

View File

@ -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) => {

View File

@ -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 }`);
}
}
```