the line either matches the `/\[info\]/` regex or the formatRegex right? shouldn't this be an if else?

also other regexs in the module are used as `RegExp#test()`. let's keep things consistent.