From ad04dc9e6fca60183682f1fcd30fca5083293cbe Mon Sep 17 00:00:00 2001 From: ISHIKAWA Takayuki Date: Wed, 25 May 2022 21:07:21 +0900 Subject: [PATCH] fix(core): Allow to use '_' and '.' in bucket name (#4952) --- CHANGELOG.md | 1 + lib/core.ps1 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2bd2448d..719eddbb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ### Bug Fixes - **core:** Load config file before initialization ([#4932](https://github.com/ScoopInstaller/Scoop/issues/4932)) +- **core:** Allow to use '_' and '.' in bucket name ([#4952](https://github.com/ScoopInstaller/Scoop/pull/4952)) - **depends:** Avoid digits in archive file extension (except for .7z and .001) ([#4915](https://github.com/ScoopInstaller/Scoop/issues/4915)) - **bucket:** Don't check remote URL of non-git buckets ([#4923](https://github.com/ScoopInstaller/Scoop/issues/4923)) - **bucket:** Don't write message OK before bucket is cloned ([#4925](https://github.com/ScoopInstaller/Scoop/issues/4925)) diff --git a/lib/core.ps1 b/lib/core.ps1 index 31991428..132b56f6 100644 --- a/lib/core.ps1 +++ b/lib/core.ps1 @@ -895,7 +895,7 @@ function applist($apps, $global) { } function parse_app([string] $app) { - if($app -match '(?:(?[a-zA-Z0-9-]+)\/)?(?.*\.json$|[a-zA-Z0-9-_.]+)(?:@(?.*))?') { + if($app -match '(?:(?[a-zA-Z0-9-_.]+)\/)?(?.*\.json$|[a-zA-Z0-9-_.]+)(?:@(?.*))?') { return $matches['app'], $matches['bucket'], $matches['version'] } return $app, $null, $null