[cocos2d-html5 v2.1.1] Does cc.LabelBMFont give you 404 error when creating font exported by AngelCode BMFont?

I ran into this problem with cocos2d-html5 2.1.1 and I got a solution:

I use AngelCode’s BMFont to export bitmap fonts, and I exported a file named names.fnt, with its companion names_0.png, whenever I created a font in my scene, I found myself getting this error:

Cocos2d-html5-v2.1.1 CCCommon.js:123
function requestAnimationFrame() { [native code] } CCCommon.js:123
cocos2d: CCSpriteBatchNode: resizing TextureAtlas capacity from 1 to [2.6666666666666665]. CCCommon.js:123
cocos2d: CCSpriteBatchNode: resizing TextureAtlas capacity from 1 to [2.6666666666666665]. CCCommon.js:123
cocos2d: CCSpriteBatchNode: resizing TextureAtlas capacity from 1 to [2.6666666666666665]. CCCommon.js:123
GET http://localhost/a/tele/res/fonts//names 404 (Not Found) CCTextureCache.js:173
cocos2d:Failed loading resource: res/fonts//names

After debugging a while I found out that the regular expression that parses the image filename (CCLabelBMFont.js, line 175) does not take in consideration files that have underscores in them, which BMFont exports by default. Renaming the image file to names0.png, and changing the name in names.fnt solves the problem.

This error was solved in 2.1.2, by checking the source code.