Skip to content

Commit

Permalink
typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaly Puzrin committed Feb 12, 2015
1 parent aa0ceac commit d6c6c4f
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,16 @@ linkify
.tlds('.onion', true); // Add uniffocial `.onion` domain.
.linkify.add('git:', 'http:'); // Add `git:` ptotocol as "alias"

linkify.test('Site https://github.com!'); // => true

console.log(linkify.test('Site github.com!'));
/* =>
{
schema: "",
index: 5,
lastIndex: 15,
raw: "github.com",
text: "github.com",
url: "http://github.com",
}
*/
console.log(linkify.test('Site github.com!')); // true

console.log(linkify.match('Site github.com!')); // {
// schema: "",
// index: 5,
// lastIndex: 15,
// raw: "github.com",
// text: "github.com",
// url: "http://github.com",
// }
```

##### Exmple 2. Add twitter mentions handler
Expand Down

0 comments on commit d6c6c4f

Please sign in to comment.