Ignore trailing period in domain for Quick Copy
From @aurimasv
This commit is contained in:
parent
899e33c993
commit
f07fe7184d
2 changed files with 6 additions and 1 deletions
|
@ -21,6 +21,10 @@ describe("Zotero.QuickCopy", function() {
|
|||
assert.deepEqual(Zotero.QuickCopy.getFormatFromURL('http://foo/'), quickCopyPref);
|
||||
})
|
||||
|
||||
it("should handle a domain with a trailing period", function () {
|
||||
assert.deepEqual(Zotero.QuickCopy.getFormatFromURL('http://foo.com.'), quickCopyPref);
|
||||
})
|
||||
|
||||
it("should handle an about: URL", function () {
|
||||
assert.deepEqual(Zotero.QuickCopy.getFormatFromURL('about:blank'), quickCopyPref);
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue