Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ebulk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
ebulk
Commits
5e54bf38
Commit
5e54bf38
authored
Jul 22, 2019
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow special chars like @ and dots in user name
parent
7ce3755c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ebulk
ebulk
+1
-1
ebulk-data/embulk-wendelin-dataset-tool/lib/embulk/dataset_utils.rb
.../embulk-wendelin-dataset-tool/lib/embulk/dataset_utils.rb
+1
-1
No files found.
ebulk
View file @
5e54bf38
...
...
@@ -194,7 +194,7 @@ function storeCredentials {
echo
echo
"User:"
read
-e
USER
re
=
'^[A-Za-z][-A-Za-z0-9_]*$'
re
=
'^[A-Za-z][-A-Za-z0-9_
.@
]*$'
if
!
[[
$USER
=
~
$re
]]
;
then
echo
echo
-e
"
${
ORANGE
}
[ERROR] Invalid user name. Did enter an invalid character?"
...
...
ebulk-data/embulk-wendelin-dataset-tool/lib/embulk/dataset_utils.rb
View file @
5e54bf38
...
...
@@ -152,7 +152,7 @@ class DatasetUtils
puts
print
"User:"
user
=
gets
.
chomp
if
not
/^[A-Za-z][-A-Za-z0-9_]*$/
.
match
(
user
)
if
not
/^[A-Za-z][-A-Za-z0-9_
.@
]*$/
.
match
(
user
)
puts
@logger
.
error
(
"Invalid user name. Did enter an invalid character?"
,
print
=
TRUE
)
@logger
.
info
(
"Please enter a valid user name."
,
print
=
TRUE
)
...
...
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