@idle-screens/schema 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1187,7 +1187,7 @@ function hexToRgba(hex, alpha) {
1187
1187
  return `rgba(${n >> 16 & 255},${n >> 8 & 255},${n & 255},${alpha})`;
1188
1188
  }
1189
1189
  var FONT_PREFIX_RE = /^((?:(?:italic|oblique|bold|bolder|lighter|normal|\d{3})\s+)+)/;
1190
- var FONT_PX_RE = /(\d*\.?\d+)px/;
1190
+ var FONT_PX_RE = /(\d{1,5}(?:\.\d{1,4})?|\.\d{1,4})px/;
1191
1191
  function scaleFontPx(font, factor) {
1192
1192
  if (factor === 1) return font;
1193
1193
  return font.replace(FONT_PX_RE, (_m, n) => `${(Number(n) * factor).toFixed(2)}px`);