Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/atom/uri-pattern.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default class URIPattern {

matches(string) {
if (string === undefined || string === null) {
return false;
return nonURIMatch;
}

const other = url.parse(string, true);
Expand Down
4 changes: 2 additions & 2 deletions test/atom/uri-pattern.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ describe('URIPattern', function() {
});

it('does not match undefined or null', function() {
assert.isFalse(exact.matches(undefined));
assert.isFalse(exact.matches(null));
assert.isFalse(exact.matches(undefined).ok());
assert.isFalse(exact.matches(null).ok());
});
});

Expand Down