-
Notifications
You must be signed in to change notification settings - Fork 20
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
URL support? #60
Comments
I'm not sure how to PR this, as detecting a URL would require a dependency: const isURL = require('isurl');
if (isURL.lenient(expected)) {
if (isURL.lenient(actual)) {
return expected.href === actual.href;
} else {
return false;
}
} ... and this lib has been written as a UMD module. |
This module is not going to support any non-standard objects. Since you can do a workaround - please do a workaround or create separate module. |
Non-standard? https://url.spec.whatwg.org This module supports |
you are right, didn't noticed that there is a standart URL object. I'll keep this issue open, until I'll find some good clues, what to do with this |
I have written isurl, which works cross-realm -- something that this module's |
You can probably just copy what is being done here: JamesMGreene/chai-deep-match#2 (comment) |
It may have a standard but, as I mention many times in JamesMGreene/chai-deep-match#2, I find it to be extremely un-semantic. 👎 |
@JamesMGreene it's an evolving standard. Feel free to assert your thoughts: https://github.com/whatwg/url/issues |
@stevenvachon: Thanks for the info, I will. |
Any update? |
This works, however:
The text was updated successfully, but these errors were encountered: