src/core/font.js in webfontloader-1.6.9 vs src/core/font.js in webfontloader-1.6.10
- old
+ new
@@ -59,10 +59,10 @@
Font.prototype.quote_ = function (name) {
var quoted = [];
var split = name.split(/,\s*/);
for (var i = 0; i < split.length; i++) {
var part = split[i].replace(/['"]/g, '');
- if (part.indexOf(' ') == -1) {
+ if (part.indexOf(' ') == -1 && !(/^\d/.test(part))) {
quoted.push(part);
} else {
quoted.push("'" + part + "'");
}
}