issues
search
CrossPaste
/
crosspaste-desktop
Universal Pasteboard Across Devices
https://crosspaste.com
GNU Affero General Public License v3.0
868
stars
35
forks
source link
Improve color format parsing and add conversion tests
#2152
Closed
guiyanakuang
closed
3 days ago
guiyanakuang
commented
3 days ago
Fix hex color validation by adding strict length check (6 or 8 digits)
Improve RGB/RGBA parsing with better whitespace handling
Fix alpha value calculation using roundToInt instead of truncation
Enhance RGBA alpha pattern to support all valid formats (0, 1, 0.x, 1.0)
Add comprehensive unit tests for color format parsing and conversion