Skip to content

Commit

Permalink
fix(core): Escape '.' in 'parse_app()'. (#4578)
Browse files Browse the repository at this point in the history
  • Loading branch information
tukanos committed Dec 14, 2021
1 parent f3cdfff commit 6f60059
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ function applist($apps, $global) {
}

function parse_app([string] $app) {
if($app -match '(?:(?<bucket>[a-zA-Z0-9-]+)\/)?(?<app>.*.json$|[a-zA-Z0-9-_.]+)(?:@(?<version>.*))?') {
if($app -match '(?:(?<bucket>[a-zA-Z0-9-]+)\/)?(?<app>.*\.json$|[a-zA-Z0-9-_.]+)(?:@(?<version>.*))?') {
return $matches['app'], $matches['bucket'], $matches['version']
}
return $app, $null, $null
Expand Down

0 comments on commit 6f60059

Please sign in to comment.