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

Update URL Validation Regex to Support IP Addresses and Port Numbers #1233

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

juananpe
Copy link
Contributor

Description

This pull request updates the URL validation regex to accommodate URLs with http or https protocols, IP addresses, optional port numbers, and URL-encoded characters, ensuring broader validation coverage. This change allows the system to correctly validate URLs like http://192.168.1.140:9000/1%202%20Inflación-wav.json, which include direct IP access with port specifications and encoded characters, enhancing compatibility with a wider range of URLs.

Fixes #1232

Type of change

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

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jan 31, 2024
Copy link

codecov bot commented Jan 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (2985b66) 56.60% compared to head (c8c0534) 56.60%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1233   +/-   ##
=======================================
  Coverage   56.60%   56.60%           
=======================================
  Files         146      146           
  Lines        5923     5923           
=======================================
  Hits         3353     3353           
  Misses       2570     2570           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@taranjeet
Copy link
Member

This looks good. Merging it.
thanks @juananpe

@taranjeet taranjeet merged commit 819650a into mem0ai:main Feb 2, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extend URL Validation to Include IP Addresses and Port Numbers in JSON loader
2 participants