refactor(web): replace String.match() with RegExp.exec() for non-global regex (#32386)

This commit is contained in:
Apoorv Darshan authored and GitHub committed 2026-02-18 17:46:38 +09:00
1 parent 41a4a57d2e
commit 00591a592c
18 files changed
+22 -22

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@ export const parsePluginErrorMessage = async (error: any): Promise<string> => {
// Try to extract nested JSON from PluginInvokeError
// Use greedy match .+ to capture the complete JSON object with nested braces
const pluginErrorPattern = /PluginInvokeError:\s*(\{.+\})/
const match = rawMessage.match(pluginErrorPattern)
const match = pluginErrorPattern.exec(rawMessage)
if (match) {
try {