Battery/MacOS X: improved parsing
Battery/MacOS X: improved parsing

Parsing improved (faster, stricter), manually tested with pmset-simulator.
TODO: write automated tests.

https://github.com/nojhan/liquidprompt/issues/326

elementalvoid/liquidprompt,laurentbardin/liquidprompt,tsbarnes/liquidprompt,tocomo/liquidprompt,dtschan/liquidprompt,joshuarubin/dotfiles,dpilone/liquidprompt,jonathanjsimon/liquidprompt,nojhan/liquidprompt,pkkolos/liquidprompt,BobHood/liquidprompt,joshuarubin/dotfiles,milouse/liquidprompt,dan-cleinmark/liquidprompt,joshuarubin/dotfiles,jaesivsm/liquidprompt,joshuarubin/dotfiles,smadhueagle/liquidprompt,alexprengere/liquidprompt