synapsecns/sanguine

View on GitHub
packages/widget/src/utils/formatRgb.ts

Summary

Maintainability
A
0 mins
Test Coverage
export const formatRGB = (color: string) => {
  return color
    .split(',')
    .map((x) => x.replace(/[^0-9.]/g, ''))
    .join(',')
}