Fix issue with Intl polyfill and RegExp caching

This commit is contained in:
SleepWalker 2020-01-20 12:47:28 +02:00
parent 3608a53a95
commit d98dee018a

View File

@ -55,6 +55,11 @@ async function polyfillIntl(locale: string): Promise<void> {
'intl'
);
// resolve issue with RegExp errors
// @see https://github.com/mattlewis92/angular-calendar/issues/274
// @see https://github.com/mattlewis92/angular-calendar/issues/274
Intl.__disableRegExpRestore();
window.Intl = Intl;
// MUST be loaded in series with the main polyfill