Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

165 B
Raw Blame
export const isValidHexColor = (hexColor: string) => {
  const hexColorPattern = /^#?([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/;

  return hexColorPattern.test(hexColor);
};