Skip to content

Commit

Permalink
1608585: Fix label regex
Browse files Browse the repository at this point in the history
  • Loading branch information
mdboom committed Jan 21, 2020
1 parent 002ce6a commit 1dac1c0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion glean_parser/schemas/metrics.1-0-0.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ definitions:

labeled_metric_id:
type: string
pattern: "^[a-z_][a-z0-9_-]{0,29}(\\.[a-z0-9_-]{0,29})*$"
pattern: "^[a-z_][a-z0-9_-]{0,29}(\\.[a-z_][a-z0-9_-]{0,29})*$"
maxLength: 71 # Note: this should be category + metric + 1

metric:
Expand Down
1 change: 0 additions & 1 deletion tests/data/core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ core_ping:
- this_is_fine_too
- this.is_still_fine
- thisisfine
- this.is_fine.2
- _.is_fine
- this.is-fine
- this-is-fine
Expand Down

0 comments on commit 1dac1c0

Please sign in to comment.