Added a commit to support this.

The idea is to silently remove unsupported commands (which just look like garbage in buildbot), and yes, the old implementation did support unlimited number of SGR. If you dont mind, I find my regex slightly more explicit:
match first command, and then option commands prefixed with ';'
rather than
match optional commands prefixed with ; and then a mandatory last command