Skip to content

Commit

Permalink
checkver: Add 're' alias 'regex'
Browse files Browse the repository at this point in the history
  • Loading branch information
r15ch13 committed Sep 18, 2018
1 parent 7311b41 commit 468649c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions appveyor.yml
Expand Up @@ -6,7 +6,7 @@ branches:

build: off
deploy: off
clone_depth: 50
clone_depth: 49

image:
- Visual Studio 2017
Expand All @@ -17,7 +17,7 @@ environment:
- PowerShell: 6

cache:
# - '%USERPROFILE%\Documents\WindowsPowerShell\Modules -> appveyor.yml'
- '%USERPROFILE%\Documents\WindowsPowerShell\Modules -> appveyor.yml'

matrix:
fast_finish: true
Expand Down
3 changes: 3 additions & 0 deletions bin/checkver.ps1
Expand Up @@ -79,6 +79,9 @@ $queue | ForEach-Object {
if($json.checkver.re) {
$regex = $json.checkver.re
}
if($json.checkver.regex) {
$regex = $json.checkver.regex
}

if($json.checkver.jp) {
$jsonpath = $json.checkver.jp
Expand Down
5 changes: 5 additions & 0 deletions schema.json
Expand Up @@ -203,6 +203,11 @@
"type": "string"
},
"re": {
"format": "regex",
"type": "string",
"description": "Same as 'regex'"
},
"regex": {
"format": "regex",
"type": "string"
},
Expand Down

0 comments on commit 468649c

Please sign in to comment.