Running a global replace with a non-reusable regexp on the source content every time a colon is encountered is dramatically bad practice.