Skip to content

Commit f2f1b45

Browse files
authored
fix(explorer): interpret hex as string (minimist) (#3099)
1 parent 5eb32a3 commit f2f1b45

File tree

3 files changed

+35
-13
lines changed

3 files changed

+35
-13
lines changed

Diff for: package.json

+5
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,10 @@
5858
"engines": {
5959
"node": "^18.20.1",
6060
"pnpm": "^9.6.0"
61+
},
62+
"pnpm": {
63+
"patchedDependencies": {
64+
65+
}
6166
}
6267
}

Diff for: patches/[email protected]

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/index.js b/index.js
2+
index f020f3940e129c361dc89226efaf8775a4af8752..b36b76708f93042f46e7de501d832635016a4931 100644
3+
--- a/index.js
4+
+++ b/index.js
5+
@@ -12,7 +12,6 @@ function hasKey(obj, keys) {
6+
7+
function isNumber(x) {
8+
if (typeof x === 'number') { return true; }
9+
- if ((/^0x[0-9a-f]+$/i).test(x)) { return true; }
10+
return (/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/).test(x);
11+
}
12+

Diff for: pnpm-lock.yaml

+18-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)