1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-06 02:23:24 +00:00

config: allow dot in remote names (#5606)

This commit is contained in:
albertony
2021-11-01 20:50:06 +01:00
committed by GitHub
parent b3217adf08
commit 39e2af7974
3 changed files with 83 additions and 6 deletions

View File

@@ -13,12 +13,12 @@ import (
)
const (
configNameRe = `[\w_ -]+`
configNameRe = `[\w_. -]+`
remoteNameRe = `^(:?` + configNameRe + `)`
)
var (
errInvalidCharacters = errors.New("config name contains invalid characters - may only contain `0-9`, `A-Z`, `a-z`, `_`, `-` and space")
errInvalidCharacters = errors.New("config name contains invalid characters - may only contain `0-9`, `A-Z`, `a-z`, `_`, `-`, `.` and space")
errCantBeEmpty = errors.New("can't use empty string as a path")
errCantStartWithDash = errors.New("config name starts with `-`")
errBadConfigParam = errors.New("config parameters may only contain `0-9`, `A-Z`, `a-z` and `_`")