1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00

Case insensitive modifier for Firefox (#15831)

JSON.parse: unexpected character at line 1 column 1 of the JSON data

JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
This commit is contained in:
PeterYinusa 2022-09-14 18:16:21 +01:00 committed by GitHub
parent e5da67515c
commit eb176c721b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,7 +166,7 @@ export default class AdvancedTab extends PureComponent {
restoreMessage: null,
});
} catch (e) {
if (e.message.match(/Unexpected.+JSON/u)) {
if (e.message.match(/Unexpected.+JSON/iu)) {
this.setState({
showResultMessage: true,
restoreSuccessful: false,