alafr / SVG-to-PDFKit

Insert SVG into a PDF document created with PDFKit
MIT License
397 stars 111 forks source link

NamedColors is case sensitive #152

Open joda-divid opened 2 years ago

joda-divid commented 2 years ago

If specifying fill="Red" instead of fill="red" there will not be a match with the NamedColors and the color will default to black.

Suggesting to de-sensitize the colors so that uppercase letters don't get filter out.