Skip to content

Commit

Permalink
Fixing regex for components in v3 schema (#724)
Browse files Browse the repository at this point in the history
  • Loading branch information
cwduncan authored Oct 1, 2024
1 parent 47a6c25 commit 79d5d46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion schemas/pa-yaml/v3.0/pa.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ definitions:
The format is: <publisher-prefix> '_' <JS-Namespace> '.' <JS-ClassName>
type: string
pattern: |-
^([a-z][a-z0-9]{1,7})_([a-zA-Z0-9]\.)+[a-zA-Z0-9]+*$
^([a-z][a-z0-9]{1,7})_([a-zA-Z0-9]\.)+[a-zA-Z0-9]+$
ComponentDefinitions-name-instance-map:
type: object
Expand Down
2 changes: 1 addition & 1 deletion src/schemas/pa-yaml/v3.0/pa.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ definitions:
type: string
# TODO: The JS regex pattern doesn't easily support unicode chars which are valid JS identifiers.
pattern: |-
^([a-z][a-z0-9]{1,7})_([a-zA-Z0-9]\.)+[a-zA-Z0-9]+*$
^([a-z][a-z0-9]{1,7})_([a-zA-Z0-9]\.)+[a-zA-Z0-9]+$
ComponentDefinitions-name-instance-map:
type: object
Expand Down

0 comments on commit 79d5d46

Please sign in to comment.