You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The uuid.Parse function currently treats UUID strings with leading or trailing spaces as valid.
_, parseError := uuid.Parse(" a3bb189e-8bf9-3888-9912-ace4e6543002 ")
when parsing a UUID string like " a3bb189e-8bf9-3888-9912-ace4e6543002 " (with spaces around it), the function does not return an error (parseError is nil). https://go.dev/play/p/8eIO_36dfdD
It would be beneficial to either treat such strings as invalid ?
The text was updated successfully, but these errors were encountered:
The uuid.Parse function currently treats UUID strings with leading or trailing spaces as valid.
_, parseError := uuid.Parse(" a3bb189e-8bf9-3888-9912-ace4e6543002 ")
when parsing a UUID string like " a3bb189e-8bf9-3888-9912-ace4e6543002 " (with spaces around it), the function does not return an error (parseError is nil). https://go.dev/play/p/8eIO_36dfdD
It would be beneficial to either treat such strings as invalid ?
The text was updated successfully, but these errors were encountered: