Skip to content

Commit

Permalink
fix: Ensure that we only match exact GUIDs for the legacy comparison …
Browse files Browse the repository at this point in the history
…model
  • Loading branch information
notheotherben committed Aug 4, 2023
1 parent 134eb1d commit 2b8d684
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default class GuidNode<T> extends ValueNode {
let thisValue = this.value;

// If the other value is not in its raw GUID format, then let's convert this value to its base64 representation
if (!/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}/i.test(otherValue)) {
if (!/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/i.test(otherValue)) {
thisValue = Buffer.from(this.value).toString("base64");
}

Expand Down

0 comments on commit 2b8d684

Please sign in to comment.