src/vs/editor/common/languages/supports/onEnter.ts/OnEnterSupport/_safeRegExp
class OnEnterSupport:	private static _safeRegExp(def: string): RegExp | null {
		try {
			return new RegExp(def);
		} catch (err) {
			onUnexpectedError(err);
			return null;
		}
	}