Skip to content

Commit eaac1f5

Browse files
committed
fix regex bug
1 parent e54d840 commit eaac1f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nextjs/src/utils/userIntegrations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type ForcedIntegrationOptions = {
1919
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2020
function setNestedKey(obj: Record<string, any>, keyPath: string, value: unknown): void {
2121
// Ex. foo.bar.zoop will extract foo and bar.zoop
22-
const match = keyPath.match(/([a-z]+)\.(.*)/i);
22+
const match = keyPath.match(/([a-z_]+)\.(.*)/i);
2323
// The match will be null when there's no more recursing to do, i.e., when we've reached the right level of the object
2424
if (match === null) {
2525
obj[keyPath] = value;

0 commit comments

Comments
 (0)