Snippet need to accept regexp with 'i' flag
Background
Snippet can parse that the search argument is a RegExp if it is surrounded by /. But this doesn't allow specifiying i which could be useful. We need to support /regexp/i.
What to change
In lib/content/snippets.js change toRegExp() to support /regexp/i.
Edited by Hubert Figuière