Skip to content

Commit e267ba9

Browse files
committed
error regex update
1 parent 44bb023 commit e267ba9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/utils/errors.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ErrorInfo } from 'react';
22

3-
const pluginErrorRegex = /http:\/\/localhost:1337\/plugins\/([^\/]*)\//;
3+
const pluginErrorRegex = /http:\/\/(?:localhost|127\.0\.0\.1):1337\/plugins\/([^\/]*)\//;
44
const pluginSourceMapErrorRegex = /decky:\/\/decky\/plugin\/([^\/]*)\//;
55
const legacyPluginErrorRegex = /decky:\/\/decky\/legacy_plugin\/([^\/]*)\/index.js/;
66

@@ -44,7 +44,7 @@ export function getLikelyErrorSource(error?: string): ErrorSource {
4444
return [decodeURIComponent(legacyPluginMatch[1]), true, false];
4545
}
4646

47-
if (error?.includes('http://localhost:1337/')) {
47+
if (error?.includes('http://localhost:1337/') || error?.includes('http://127.0.0.1:1337/')) {
4848
return ['the Decky frontend', false, false];
4949
}
5050
return ['Steam', false, true];

0 commit comments

Comments
 (0)