MDL-23493 fix borked regex matching for non-standard font extensions