import {
  escapeRegExp
} from "./chunk-NANOYEVH.js";

// src/hooks/useNumberInput/utils/getSuffix.ts
var getSuffix = (value, { groupSeparator = ",", decimalSeparator = "." }) => {
  const suffixReg = new RegExp(
    `\\d([^${escapeRegExp(groupSeparator)}${escapeRegExp(
      decimalSeparator
    )}0-9]+)`
  );
  const suffixMatch = value.match(suffixReg);
  return suffixMatch ? suffixMatch[1] : void 0;
};

export {
  getSuffix
};
