remove g flag from regex

these shouldn't be used with the workflowy find (which will call
regex.test) since they store a count