dominicbarnes/node-minecraft-runner — pull request #4 by heneryville (2013-09-05 03:46:53+00:00)
Title: Parse log lines individually

Although rare (about 1 in 25 times) stderr does not alway emit it's output on line boundaries. Because the pattern depends on line boundaries, this causes some events to not be emitted.

This is especially the case for joined and left events, where the log entries the patterns are looking for are followed especially closely by other entries.

This commit explicitly breaks logs into lines before parsing them thus causing the events to be detected correctly.