Commit 069febbb authored by GoshaZotov's avatar GoshaZotov

fix bug 35025

parent a38f07a6
......@@ -321,7 +321,7 @@
return NaN;
}
var chars = {M:1000, CM:900, D:500, CD:400, C:100, XC:90, L:50, XL:40, X:10, IX:9, V:5, IV:4, I:1};
var chars = {"M":1000, "CM":900, "D":500, "CD":400, "C":100, "XC":90, "L":50, "XL":40, "X":10, "IX":9, "V":5, "IV":4, "I":1};
var arabic = 0;
roman.replace(/[MDLV]|C[MD]?|X[CL]?|I[XV]?/g, function(i){
arabic += chars[i];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment