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
{{ message }}
This repository was archived by the owner on May 30, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on May 30, 2024. It is now read-only.
There are 21 'full' base64 digits and the last one has at most 2 low bits set "[AQgw]". This is so that the base64 part fits in 128 bit value (216 + 12) = 128
The dot should be escaped (as mentioned above)
There is an optional '!' terminator
I believe the cV2 regex should be
new RegExp("^[" + base64CharSet + "]{21}[AQgw](\.[0-9]+)+!?$")
Activity
jehumb-havok commentedon May 30, 2023
Just to confirm it's broken, see https://regex101.com/r/tbYsWN/1 where I can match a
%instead of the.in one of the official spec examples:stkenned-havok commentedon May 30, 2023
Reading the spec, https://github.com/microsoft/CorrelationVector/blob/master/cV%20-%202.1.md there are more things wrong with the regex.
I believe the cV2 regex should be
new RegExp("^[" + base64CharSet + "]{21}[AQgw](\.[0-9]+)+!?$")jehumb-havok commentedon May 30, 2023
Validated this seems to work indeed:
https://regex101.com/r/22xreE/1
First and last don't match, middle ones do:
jehumb-havok commentedon Jul 5, 2023
Ping mmckenz / sathishcg / Jerry Blake (@JerryBlake), anybody looking at issues in this repo?