"use strict";Object.defineProperty(exports, "__esModule", {value: true});

var _chunkGNRTDXICcjs = require('./chunk-GNRTDXIC.cjs');

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



exports.removeInvalidChars = removeInvalidChars;
