All files / src/features/GiveOnboarding/pages/Bank/Connect utils.ts

71.42% Statements 5/7
50% Branches 1/2
50% Functions 1/2
100% Lines 5/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 941x 4x 4x   4x     41x  
export const normalizeInput = (value: string) => {
  Iif (!value) return value;
  const currentValue = value.replace(/[^\d]/g, "");
 
  return currentValue;
};
 
export const isNormalizedInput = (value: string) => !/[^0-9]/.test(value);