We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://github.com/llm-tools/embedJs/blob/main/core/embedjs-utils/src/util/strings.ts
export function isValidURL(url: string) { try { new URL(url); return true; } catch { return false; } }
url C:\README.md return true
this.isUrl = true
TypeError: fetch failed [cause]: Error: unknown scheme
Here should be used file access mode to read the local directory files.
The text was updated successfully, but these errors were encountered:
Thank you for pointing the bug out. Updated signature to following in the upcoming release -
export function isValidURL(url: string) { try { const parsedUrl = new URL(url); return parsedUrl.protocol === 'http:' || parsedUrl.protocol === 'https:'; } catch { return false; } }
Sorry, something went wrong.
Addressed in 0.1.26
0.1.26
adhityan
No branches or pull requests
🐛 Describe the bug
https://github.com/llm-tools/embedJs/blob/main/core/embedjs-utils/src/util/strings.ts
TestCase:
url C:\README.md
return true
MarkdownLoader
this.isUrl = true
TypeError: fetch failed
[cause]: Error: unknown scheme
Here should be used file access mode to read the local directory files.
The text was updated successfully, but these errors were encountered: