Skip to content

Commit 46b44bc

Browse files
tukanosse35710
authored andcommitted
fix(core): Escape '.' in 'parse_app()'. (ScoopInstaller#4578)
1 parent 5abeabb commit 46b44bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ function applist($apps, $global) {
867867
}
868868

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

0 commit comments

Comments
 (0)