From fe152db20288007bcae7d82c09de1097c0fc60c9 Mon Sep 17 00:00:00 2001 From: Bob Ippolito Date: Mon, 4 Nov 2024 20:30:45 -0800 Subject: [PATCH] fix regex for updated babel(?) --- packages/lexical-website/fb/sdoc-cache.json | 2 +- .../error-codes/__tests__/unit/transform-error-messages.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,