Skip to content

Commit

Permalink
fix: rotateHue accepts negative hue values in DOMStylesReader
Browse files Browse the repository at this point in the history
  • Loading branch information
setalosas committed Apr 14, 2021
1 parent 34ec289 commit 2e6f047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dom-styles-reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export default class DOMStylesReader {

const dotRegexp = /\.+/g
const rgbExtractRegexp = /rgb(a?)\((\d+), (\d+), (\d+)(, (\d+(\.\d+)?))?\)/
const hueRegexp = /hue-rotate\((\d+)deg\)/
const hueRegexp = /hue-rotate\((-?\d+)deg\)/

/**
* Computes the output color of `value` with a rotated hue defined
Expand Down

0 comments on commit 2e6f047

Please sign in to comment.