2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-10-04 17:32:34 +08:00

DEV: Fix source-identifier for plugins when using .gz assets (#30820)

This commit is contained in:
David Taylor 2025-01-16 15:33:28 +00:00 committed by GitHub
parent 1ae35ecce8
commit 892d02fda1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -58,7 +58,7 @@ export default function identifySource(error) {

// Production (with fingerprints)
plugin ??= stack.match(
/assets\/plugins\/_?([\w-]+)-[0-9a-f]+(?:\.br)?\.js/
/assets\/plugins\/_?([\w-]+)-[0-9a-f]+(?:\.(?:br|gz))?\.js/
)?.[1];

if (plugin) {