Skip to content

Commit

Permalink
docs(command): fix incorrectly import module (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
kecrily committed Aug 28, 2021
1 parent ab38cc7 commit 6674ea3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions command/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ This example shows you how to use a function as type handler.

```typescript
import { Command } from "https://deno.land/x/cliffy/command/mod.ts";
import { IType } from "https://deno.land/x/cliffy/flags/mod.ts";
import { ITypeInfo } from "https://deno.land/x/cliffy/flags/mod.ts";

const emailRegex =
/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
Expand Down Expand Up @@ -1045,7 +1045,7 @@ This example shows you how to use a class as type handler.

```typescript
import { Command, Type } from "https://deno.land/x/cliffy/command/mod.ts";
import { IType } from "https://deno.land/x/cliffy/flags/mod.ts";
import { ITypeInfo } from "https://deno.land/x/cliffy/flags/mod.ts";

class EmailType extends Type<string> {
protected emailRegex =
Expand Down

0 comments on commit 6674ea3

Please sign in to comment.