Skip to content

Commit

Permalink
Convert number to string before string operation
Browse files Browse the repository at this point in the history
  • Loading branch information
fbennett committed May 24, 2019
1 parent 90614d6 commit 7dbdc19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util_number.js
Expand Up @@ -282,7 +282,7 @@ CSL.Engine.prototype.processNumber = function (node, ItemObject, variable) {
var lst = str.split(/(?:;\s+|,\s+|\s*\\*[\-\u2013]+\s*|\s*&\s*)/);
var recombine = false;
for (var i in lst) {
if (lst[i].replace(/^[a-z]\.\s+/, "").match(/[^\s0-9ivxlcmIVXLCM]/)) {
if (("" + lst[i]).replace(/^[a-z]\.\s+/, "").match(/[^\s0-9ivxlcmIVXLCM]/)) {
//recombine = true;
break;
}
Expand Down

0 comments on commit 7dbdc19

Please sign in to comment.