Skip to content

Commit a6683ea

Browse files
authored
Merge pull request #791 from setalosas/DOMStylerReader-hueRotateFix
2 parents 34ec289 + 6b5aebd commit a6683ea

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

.github/workflows/CI.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,14 @@ jobs:
5353
- name: Commit lint ✨
5454
uses: wagoid/commitlint-github-action@v2
5555

56-
- uses: UziTech/action-setup-atom@v1
57-
- name: Setup PNPM
58-
uses: pnpm/[email protected]
59-
with:
60-
version: latest
61-
6256
- name: Install dependencies
63-
run: pnpm install
57+
run: npm install
6458

6559
- name: Format ✨
66-
run: pnpm test.format
60+
run: npm run test.format
6761

6862
- name: Lint ✨
69-
run: pnpm test.lint
63+
run: npm run test.lint
7064

7165
Release:
7266
needs: [Test, Lint]

lib/dom-styles-reader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export default class DOMStylesReader {
148148

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

153153
/**
154154
* Computes the output color of `value` with a rotated hue defined

0 commit comments

Comments
 (0)