Skip to content

Commit 004e9ea

Browse files
committed
Add mailto examples to README.
1 parent e753971 commit 004e9ea

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,14 @@ url('#chucky'); // cheese
6262
url('#poo'); // undefined
6363
```
6464

65+
Also supports `mailto`.
66+
67+
```js
68+
url('protocol', 'mailto:rob@websanova.com'); // mailto
69+
url('email', 'mailto:rob@websanova.com'); // rob@websanova.com
70+
71+
```
72+
6573
We can also pass a url in and use all the same options on it:
6674

6775
```js

0 commit comments

Comments
 (0)