No, the code is fine like it is. What is happening is that I changed the default separator for the regex from '/' to '|'. When that happens, there has to be an explicit "m" in front of it. "if (/^\//)" would be the same effect. Since the '/' means regex starts/ends, I have to escape the '/' at the beginning of the line and we wind up with a bunch of "leaning toothpicks". The aesthetics these leaning toothpicks didn't look very good to me so I changed it. Sometimes you will see if (m{^/}) because another way is to use curly braces.
Sounds like you have a text editor that is not so smart and its leading you astray with wrong highlighting. | [reply] [d/l] |