Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const require_hooks_useNumberInput_utils_escapeRegExp = require("./escapeRegExp.cjs");
//#region src/hooks/useNumberInput/utils/removeInvalidChars.ts
/**
* Remove invalid characters
*/
const removeInvalidChars = (value, validChars) => {
	const chars = require_hooks_useNumberInput_utils_escapeRegExp.escapeRegExp(validChars.join(""));
	const reg = new RegExp(`[^\\d${chars}]`, "gi");
	return value.replace(reg, "");
};
//#endregion
exports.removeInvalidChars = removeInvalidChars;
