diff --git a/chrome/content/zotero/xpcom/utilities b/chrome/content/zotero/xpcom/utilities index 71b3e83013..4051881d59 160000 --- a/chrome/content/zotero/xpcom/utilities +++ b/chrome/content/zotero/xpcom/utilities @@ -1 +1 @@ -Subproject commit 71b3e83013398acb8d63d968bfef95160bf77581 +Subproject commit 4051881d59c6c12d34417d4c226f37218051be90 diff --git a/test/tests/citeTest.js b/test/tests/citeTest.js index 04360b0361..169e36b729 100644 --- a/test/tests/citeTest.js +++ b/test/tests/citeTest.js @@ -38,7 +38,7 @@ describe("Zotero.Cite", function () { }); }); - describe("EDTF dates", function () { + describe("Dates", function () { async function makeBibliography(fields) { let item = new Zotero.Item; item.fromJSON(Object.assign({ @@ -71,6 +71,10 @@ describe("Zotero.Cite", function () { assert.include(output, '2021–2026'); assert.notInclude(output, '1999'); }); + + it("should render a quoted date as a literal string", async function () { + assert.include(await makeBibliography({ date: '"1637 and 1662"' }), '1637 and 1662'); + }); }); describe("#retrieveLocale()", function () {