Skip to content

Commit 1d5c0c7

Browse files
committed
Add some examples of invalid colors (showing the return of null).
1 parent b0bb322 commit 1d5c0c7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ JavaScript parser for CSS color strings.
88
[ 255, 0, 17, 1 ]
99
> parseCSSColor('slateblue');
1010
[ 106, 90, 205, 1 ]
11+
> parseCSSColor('blah');
12+
null
13+
> parseCSSColor('ffffff');
14+
null
1115

1216

1317
(c) Dean McNamee <dean@gmail.com>, 2012.

0 commit comments

Comments
 (0)