Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Fix sanitizeHost validation #446

Merged
merged 1 commit into from
Aug 3, 2022
Merged

Fix sanitizeHost validation #446

merged 1 commit into from
Aug 3, 2022

Conversation

paulomarg
Copy link
Contributor

WHY are these changes introduced?

There are some cases where the sanitizeHost function doesn't accept hosts generated by Shopify, which seem to lack the padding =s at the end.

WHAT is this pull request doing?

Making the regexp for validating hosts more flexible by making the = signs optional.

Type of change

  • Patch: Bug (non-breaking change which fixes an issue)

Checklist

  • I have added a changelog entry, prefixed by the type of change noted above
  • I have added/updated tests for this change

@paulomarg paulomarg merged commit 54b8cfe into main Aug 3, 2022
@paulomarg paulomarg deleted the fix_sanitize_host branch August 3, 2022 14:28
@shopify-shipit shopify-shipit bot temporarily deployed to production August 3, 2022 15:06 Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants