Skip to content

Commit

Permalink
build(schema): Add explicit escape to opening bracket matcher in jp/j…
Browse files Browse the repository at this point in the history
…sonpath regex (ScoopInstaller#3719)
  • Loading branch information
ParkerM authored Jan 8, 2022
1 parent cabaf59 commit 92c89f8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

- **checkver:** Fix output with '-Version' ([#3774](https://github.com/ScoopInstaller/Scoop/issues/3774))
- **schema:** Add '$schema' property ([#4623](https://github.com/ScoopInstaller/Scoop/issues/4623))
- **schema:** Add explicit escape to opening bracket matcher in jp/jsonpath regex ([#3719](https://github.com/ScoopInstaller/Scoop/issues/3719))

### Styles

Expand Down
16 changes: 8 additions & 8 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
"pattern": "^([a-fA-F0-9]{64}|(sha1|sha256|sha512|md5):([a-fA-F0-9]{32}|[a-fA-F0-9]{40}|[a-fA-F0-9]{64}|[a-fA-F0-9]{128}))$",
"type": "string"
},
"jsonPathPattern": {
"pattern": "^\\$[.\\[].*$",
"type": "string"
},
"hash": {
"anyOf": [
{
Expand Down Expand Up @@ -35,13 +39,11 @@
"type": "string"
},
"jp": {
"pattern": "^\\$[.[].*$",
"type": "string",
"$ref": "#/definitions/jsonPathPattern",
"description": "Same as 'jsonpath'"
},
"jsonpath": {
"pattern": "^\\$[.[].*$",
"type": "string"
"$ref": "#/definitions/jsonPathPattern"
},
"xpath": {
"type": "string"
Expand Down Expand Up @@ -284,13 +286,11 @@
"type": "string"
},
"jp": {
"pattern": "^\\$[.[].*$",
"type": "string",
"$ref": "#/definitions/jsonPathPattern",
"description": "Same as 'jsonpath'"
},
"jsonpath": {
"pattern": "^\\$[.[].*$",
"type": "string"
"$ref": "#/definitions/jsonPathPattern"
},
"xpath": {
"type": "string"
Expand Down

0 comments on commit 92c89f8

Please sign in to comment.