Use registerProvider to get an AOM entry, rather than a XUL overlay.
Remove extra end-anchor in generated regexp.