Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GC-2069: Fix Setting Color to false Produces API Validation Error #31

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

kevinpjones
Copy link
Contributor

No description provided.

@kevinpjones kevinpjones force-pushed the fix/GC-2069-color-cannot-be-set-to-false branch 2 times, most recently from 1fa2a62 to ce93abd Compare January 18, 2024 00:29
@kevinpjones kevinpjones marked this pull request as ready for review January 18, 2024 00:31
@kevinpjones kevinpjones requested a review from a team as a code owner January 18, 2024 00:31
@kevinpjones kevinpjones requested review from bamohan and removed request for a team January 18, 2024 00:31
@@ -764,7 +764,7 @@ public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Valid
}

// Url (string) pattern
Regex regexUrl = new Regex(@"^https:\/\/(lob-assets|lob-assets-staging)\\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\\.pdf|_thumb_[a-z]+_[0-9]+\\.png)\\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9-_]+$", RegexOptions.CultureInvariant);
Regex regexUrl = new Regex(@"^https:\/\/lob-assets.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}('|_signature)(.pdf|_thumb_[a-z]+_[0-9]+.png|.png)?(version=[a-z0-9]*&)expires=[0-9]{10}&signature=[a-zA-Z0-9-_]+", RegexOptions.CultureInvariant);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this change doing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should have been omitted from the changes, let me fix that

@kevinpjones kevinpjones force-pushed the fix/GC-2069-color-cannot-be-set-to-false branch from ce93abd to a7b2083 Compare January 18, 2024 00:39
@kevinpjones kevinpjones force-pushed the fix/GC-2069-color-cannot-be-set-to-false branch from a7b2083 to 4a1056b Compare January 18, 2024 00:43
@kevinpjones kevinpjones merged commit 86a2614 into main Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants