Skip to content

Commit 7302e88

Browse files
authored
Merge pull request #9 from factorial-io/hotfix/fix-resolution-non-global-argument
hotfix/fix resolution non global argument
2 parents 6d38014 + 6c74fb5 commit 7302e88

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ module.exports = class Breakpoints {
355355
return "1x";
356356
}
357357
const largestResolution = [...option.multipliers].sort().pop();
358-
const regex = new RegExp(REGEXP.resolution);
358+
const regex = new RegExp(REGEXP.resolution, "g");
359359
const resolution = [...largestResolution.matchAll(regex)][0];
360360
if (!resolution) {
361361
return "";

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@factorial/drupal-breakpoints-css",
33
"description": "Drupal breakpoints to css customProperties",
4-
"version": "0.1.0",
4+
"version": "0.1.2",
55
"main": "index.js",
66
"license": "MIT",
77
"private": false,

0 commit comments

Comments
 (0)