diff --git a/packages/lexical-website/fb/sdoc-cache.json b/packages/lexical-website/fb/sdoc-cache.json index a6d91bbc44a..e172e37ebf6 100644 --- a/packages/lexical-website/fb/sdoc-cache.json +++ b/packages/lexical-website/fb/sdoc-cache.json @@ -1,4 +1,4 @@ { "snippets": {}, "description": "@generated" -} +} \ No newline at end of file diff --git a/scripts/error-codes/__tests__/unit/transform-error-messages.test.js b/scripts/error-codes/__tests__/unit/transform-error-messages.test.js index 36c525e5098..7a126c54d10 100644 --- a/scripts/error-codes/__tests__/unit/transform-error-messages.test.js +++ b/scripts/error-codes/__tests__/unit/transform-error-messages.test.js @@ -52,7 +52,7 @@ function fmt(strings: TemplateStringsArray, ...keys: unknown[]) { .join('') .replace(/.use strict.;\n/g, '') .replace(/var _[^;]+;\n/g, '') - .replace(/function _interopRequireDefault\(obj\) {[^;]+?;[\s\n]*}\n/g, '') + .replace(/function _interopRequireDefault\([^)]*\) {[^;]+?;[\s\n]*}\n/g, '') .replace(/_formatProdErrorMessage\d+/g, 'formatProdErrorMessage') .replace( /\(0,\s*formatProdErrorMessage\.default\)/g,