Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Kevin Lyda
cashier
Commits
065ef26b
Commit
065ef26b
authored
Jan 25, 2017
by
Kevin Lyda
💬
Browse files
Add a comment for ExpandTilde.
parent
09b0c363
Pipeline
#1175
failed with stage
in 2 minutes and 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
client/config.go
View file @
065ef26b
...
...
@@ -28,6 +28,7 @@ func setDefaults() {
viper
.
SetDefault
(
"validateTLSCertificate"
,
true
)
}
// Expand ~ and ~user for a given path.
func
ExpandTilde
(
path
string
)
string
{
re
:=
regexp
.
MustCompile
(
"^~([^/]*)(/.*)"
)
if
m
:=
re
.
FindStringSubmatch
(
path
);
len
(
m
)
>
0
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment