I’m working on an angular app, which I kind of inherited. I saw that there was a bug with unescaped regex so I wanted to add a function for escaping regex like so: No big deal, right? But where to put this? The regex is used inside a controller. But does it make sense to have this escapeRegExp function inside