Skip to content

Commit e5f4bd4

Browse files
committed
resolve co-pilot review comments
1 parent 5fa88b8 commit e5f4bd4

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

src/js/packages/@reactpy/client/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"author": "Mark Bakhit",
3+
"contributors": [
4+
"Ryan Morshead"
5+
],
36
"dependencies": {
47
"json-pointer": "catalog:",
58
"preact": "catalog:",

src/js/packages/event-to-object/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"author": "Mark Bakhit",
3+
"contributors": [
4+
"Ryan Morshead"
5+
],
36
"dependencies": {
47
"json-pointer": "catalog:"
58
},

src/js/packages/event-to-object/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ function shouldIgnoreValue(
268268
value === null ||
269269
value === undefined ||
270270
keyName.startsWith("__") ||
271-
(keyName.length > 0 && keyName.toUpperCase() === keyName) ||
271+
(keyName.length > 0 && /^[A-Z_]+$/.test(keyName)) ||
272272
// Non-convertible types
273273
typeof value === "function" ||
274274
value instanceof CSSStyleSheet ||

0 commit comments

Comments
 (0)