diff --git a/lib/index.js b/lib/index.js index 115841b..cedac47 100644 --- a/lib/index.js +++ b/lib/index.js @@ -355,7 +355,7 @@ module.exports = class Breakpoints { return "1x"; } const largestResolution = [...option.multipliers].sort().pop(); - const regex = new RegExp(REGEXP.resolution); + const regex = new RegExp(REGEXP.resolution, "g"); const resolution = [...largestResolution.matchAll(regex)][0]; if (!resolution) { return ""; diff --git a/package.json b/package.json index 2935863..28e04c0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@factorial/drupal-breakpoints-css", "description": "Drupal breakpoints to css customProperties", - "version": "0.1.0", + "version": "0.1.2", "main": "index.js", "license": "MIT", "private": false,