From 2e6f04778870ee9d8820d41cf5c45184b6ecb4c4 Mon Sep 17 00:00:00 2001 From: setalosas Date: Thu, 15 Apr 2021 01:18:52 +0200 Subject: [PATCH 1/2] fix: rotateHue accepts negative hue values in DOMStylesReader --- lib/dom-styles-reader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dom-styles-reader.js b/lib/dom-styles-reader.js index e14cc323..d0be919c 100644 --- a/lib/dom-styles-reader.js +++ b/lib/dom-styles-reader.js @@ -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 From 6b5aebd4d68a5ceccab8495f842a1b60bfe116e6 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Wed, 14 Apr 2021 18:32:07 -0500 Subject: [PATCH 2/2] ci: fix lint error --- .github/workflows/CI.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 21e0ef0b..be271bb3 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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/action-setup@v1.2.1 - 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]