const e = (r) => {
  if (typeof r == "number")
    return Number.isFinite(r) ? r : void 0;
  if (!r)
    return;
  const t = r.trim().match(/^(-?\d+(?:\.\d+)?)px$/);
  if (t)
    return Number(t[1]);
};
export {
  e as default
};
//# sourceMappingURL=parsePixelSize.js.map
