Skip to content

Commit ffd40cf

Browse files
committed
hotfix: add global argument to resolution method
1 parent 6d38014 commit ffd40cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
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 "";

0 commit comments

Comments
 (0)