>>===== MODE =====>>
citation
<<===== MODE =====<<
Reported by abdeali khurrum to Juris-M Freshers:
"I updated my version of Juris-M - the problem still persists. To
replicate the problem, add any item that has an apostrophe in the
title (like https://en.wikipedia.org/wiki/Junior's) and use "Style
Preview" from the Preferences pane to preview the citation. If you
change the language to "العربية" (second item on the list), Firefox
(44) will hang and crash. Again, Farsi (فارسي) works fine - even
though it has the same script as Arabic."
The cause was an unnecessary while(){} statement that never cleared
if straight quotes were set as inner quotes, and the string contained
an apostrophe.
Fixed by commit https://github.com/Juris-M/citeproc-js/commit/98489396ab7b16876780bdd25f2a684679420cde
>>===== RESULT =====>>
>>[0] "Junior’s", Wikipedia, the Free Encyclopedia, 26 ديسمبر, 2015, https://en.wikipedia.org/w/index.php?title=Junior%27s&oldid=696914641.
<<===== RESULT =====<<
>>===== CITATIONS =====>>
[
[
{
"citationID": "CITATION-1",
"citationItems": [
{
"id": "ITEM-1"
}
],
"properties": {
"noteIndex": 1
}
},
[],
[]
]
]
<<===== CITATIONS =====<<
>>===== CSL =====>>
<<===== CSL =====<<
>>===== INPUT =====>>
[
{
"type": "entry-encyclopedia",
"multi": {
"main": {},
"_keys": {}
},
"id": "ITEM-1",
"title": "Junior's",
"container-title": "Wikipedia, the free encyclopedia",
"source": "Wikipedia",
"abstract": "Junior's is a restaurant at 386 Flatbush Avenue Extension at the corner of DeKalb Avenue in Downtown Brooklyn, New York City. The restaurant also has a location inside Grand Central Terminal in Midtown Manhattan, one in the Times Square area, and one in the lobby of the MGM Grand Hotel in the Foxwoods Resort in Ledyard, Connecticut. The restaurant was founded by Harry Rosen in 1950. According to the restaurant, it was named Junior's after Rosen's two sons, Walter and Marvin.",
"URL": "https://en.wikipedia.org/w/index.php?title=Junior%27s&oldid=696914641",
"note": "Page Version ID: 696914641",
"language": "en",
"issued": {
"raw": "2015-12-26T22:30:36Z"
},
"accessed": {
"raw": "2016-03-20T13:11:57Z"
}
}
]
<<===== INPUT =====<<