Skip to content

Commit a62b07e

Browse files
authored
Merge pull request #2 from pzagor2/master
Support radial gradient
2 parents 4c1fede + c8fa976 commit a62b07e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function readToMatchingParen(str) {
147147
}
148148

149149
Parser.prototype.gradient = function(){
150-
var m = /^linear-gradient/.exec(this.str);
150+
var m = /^(radial|linear)-gradient/.exec(this.str);
151151
if (!m) return m;
152152
this.skip(m[0]);
153153

0 commit comments

Comments
 (0)