Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

Commit ca4ea30

Browse files
committed
color.rs: parse_rgb some bug fix
1 parent 7062261 commit ca4ea30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

color.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ pub mod parsing {
106106
// split up r, g, and b
107107
let mut cols = ~[];
108108
for s in only_colors.split_iter(',') {
109-
cols.push(s);
109+
cols.push(s.trim());
110110
};
111111
112112
if cols.len() != 3u { return fail_unrecognized(color); }

0 commit comments

Comments
 (0)