Skip to content

Commit

Permalink
chore: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
visualjerk committed Jan 25, 2021
1 parent 34e24df commit 9bffda9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -14,7 +14,7 @@ You can find a [demo page here](https://visualjerk.github.io/quill-magic-url/).

```html
<!-- After quill script includes -->
<script src="https://unpkg.com/quill-magic-url@2.0.4/dist/index.js"></script>
<script src="https://unpkg.com/quill-magic-url@3.0.0/dist/index.js"></script>
```

### With NPM
Expand Down Expand Up @@ -49,9 +49,9 @@ const quill = new Quill(editor, {
modules: {
magicUrl: {
// Regex used to check URLs during typing
urlRegularExpression: /(https?:\/\/[\S]+)|(www.[\S]+)|(mailto:[\S]+)|(tel:[\S]+)/,
urlRegularExpression: /(https?:\/\/[\S]+)|(www.[\S]+)|(tel:[\S]+)/,
// Regex used to check URLs on paste
globalRegularExpression: /(https?:\/\/|www\.|mailto:|tel:)[\S]+/g,
globalRegularExpression: /(https?:\/\/|www\.|tel:)[\S]+/g,
},
},
})
Expand Down

0 comments on commit 9bffda9

Please sign in to comment.