From fd8388776e04bf581901883b4a3ab538fea4b873 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Tue, 1 Mar 2022 11:55:17 +0000 Subject: [PATCH] DEV: Correctly detect plugin JS with `.br.js` extension (#16073) --- app/assets/javascripts/discourse/app/lib/source-identifier.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/app/lib/source-identifier.js b/app/assets/javascripts/discourse/app/lib/source-identifier.js index ad97d5d81f9..1294fec6d39 100644 --- a/app/assets/javascripts/discourse/app/lib/source-identifier.js +++ b/app/assets/javascripts/discourse/app/lib/source-identifier.js @@ -41,7 +41,9 @@ export default function identifySource(error) { // Production mode plugin = plugin || - error.stack.match(/assets\/plugins\/_?([\w-]+)-[0-9a-f]+\.js/)?.[1]; + error.stack.match( + /assets\/plugins\/_?([\w-]+)-[0-9a-f]+(?:\.br)?\.js/ + )?.[1]; if (plugin) { return {