mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-21 09:31:17 -08:00
6 lines
166 B
TypeScript
6 lines
166 B
TypeScript
export const MATRIX_HEX_COLOR_REGEX = /^#[0-9a-fA-F]{6}$/;
|
|
|
|
export function isMatrixHexColor(value: string): boolean {
|
|
return MATRIX_HEX_COLOR_REGEX.test(value);
|
|
}
|