Ignore trailing period in domain for Quick Copy

From @aurimasv
This commit is contained in:
Dan Stillman 2015-07-03 23:46:39 -04:00
parent 899e33c993
commit f07fe7184d
2 changed files with 6 additions and 1 deletions

View file

@ -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);
})