Skip to content

Commit

Permalink
fix(data): fix value name constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
falsandtru committed Mar 16, 2017
1 parent 88e77ab commit 7c31662
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.7.3

- Fix value name constraints.

## 0.7.2

- Update dependencies.
Expand Down
2 changes: 1 addition & 1 deletion src/layer/data/constraint/values.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const RegValidValueNameFormat = /^[A-z][0-9A-z_]*$/;
const RegValidValueNameFormat = /^[a-zA-Z][0-9a-zA-Z_]*$/;
const RegInvalidValueNameFormat = /^[0-9A-Z_]+$/;

export function isValidName(prop: string): boolean {
Expand Down

0 comments on commit 7c31662

Please sign in to comment.