projects
/
raphael
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f644228
)
Colour fix
author
Dmitry Baranovskiy
<dbaranovskiy@Fresh-Air.local>
Wed, 7 Oct 2009 23:20:34 +0000
(10:20 +1100)
committer
Dmitry Baranovskiy
<dbaranovskiy@Fresh-Air.local>
Wed, 7 Oct 2009 23:20:34 +0000
(10:20 +1100)
raphael.js
patch
|
blob
|
history
diff --git
a/raphael.js
b/raphael.js
index
2391b76
..
62c77ae
100644
(file)
--- a/
raphael.js
+++ b/
raphael.js
@@
-230,7
+230,7
@@
window.Raphael = (function () {
var r = (~~red).toString(16),
g = (~~green).toString(16),
b = (~~blue).toString(16),
- rg = /^(?=
\d
$)/,
+ rg = /^(?=
[\da-f]
$)/,
rp = "replace";
r = r[rp](rg, "0");
g = g[rp](rg, "0");