I think it is time to use coffeescript’s block regexes now:

```coffee
exactWordRegex =
  if ...
    /// ^#{ pattern }\b | \b#{ pattern }\b$ ///i
  else
    /// #{ pattern } ///i
```

When I wrote that snippet, I noticed that there’s no "\b" after the "^", but a "\b" before the "$". Is that intentional?