Skip to content

Commit

Permalink
Merge pull request #160 from mdboom/labeled-regex
Browse files Browse the repository at this point in the history
1608585: Fix label regex
  • Loading branch information
mdboom authored Feb 14, 2020
2 parents 4677877 + 1dac1c0 commit 4eb0d46
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 4eb0d46

Please sign in to comment.