Skip to content

Commit

Permalink
Merge pull request #791 from setalosas/DOMStylerReader-hueRotateFix
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya authored Apr 14, 2021
2 parents 34ec289 + 6b5aebd commit a6683ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,14 @@ jobs:
- name: Commit lint ✨
uses: wagoid/commitlint-github-action@v2

- uses: UziTech/action-setup-atom@v1
- name: Setup PNPM
uses: pnpm/[email protected]
with:
version: latest

- name: Install dependencies
run: pnpm install
run: npm install

- name: Format ✨
run: pnpm test.format
run: npm run test.format

- name: Lint ✨
run: pnpm test.lint
run: npm run test.lint

Release:
needs: [Test, Lint]
Expand Down
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 a6683ea

Please sign in to comment.