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

// src/hooks/useNumberInput/utils/removeInvalidChars.ts
var removeInvalidChars = (value, validChars) => {
  const chars = escapeRegExp(validChars.join(""));
  const reg = new RegExp(`[^\\d${chars}]`, "gi");
  return value.replace(reg, "");
};

export {
  removeInvalidChars
};
