memfreeme / memfree

MemFree - Hybrid AI Search Engine & AI Page Generator
https://www.memfree.me
MIT License
1.05k stars 166 forks source link

fix(shared-utils): return early if the url cannot be parsed #124

Closed twlite closed 3 weeks ago

twlite commented 3 weeks ago

Pull Request for Memfree

Description

This PR updates url validation function to return early if the url cannot be parsed. This uses the native canParse method if supported, which validates the input without constructing the url object which can be expensive.

Changes Made

Checklist

Additional Information

Please provide any additional information that may be helpful for the reviewers.

github-actions[bot] commented 3 weeks ago

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

github-actions[bot] commented 3 weeks ago

🎉 Your pull request has been successfully merged! 🎉 Thank you for your valuable contribution to our project. Your efforts are greatly appreciated. Feel free to reach out if you have any more contributions or if there's anything else we can assist you with. Keep up the fantastic work! 🚀