Bug 1035267 - cannot use 'i' flag for RegExp match patterns