Skip to content

Commit

Permalink
fix: support underscore in keypathValidate
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Feb 17, 2021
1 parent c4de473 commit aa2c957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/keypathValidate.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export function keypathValidate(keypath: string) {
return !!keypath.match(/^[\w\d][\w\d\-[\]. ]*$/g)
return !!keypath.match(/^[\w\d\-_][\w\d\-_[\]. ]*$/)
}

0 comments on commit aa2c957

Please sign in to comment.