lib/common.js: Fix events parsing when colon involved