Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Utils
rust-git-checks
Commits
fa71fbb9
Commit
fa71fbb9
authored
May 15, 2019
by
Ben Boeckel
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
invalid_paths: simplify invalid character detection
parent
6f787f04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
git-checks/src/invalid_paths.rs
git-checks/src/invalid_paths.rs
+1
-1
No files found.
git-checks/src/invalid_paths.rs
View file @
fa71fbb9
...
...
@@ -52,7 +52,7 @@ impl InvalidPaths {
chars
.chars
()
.any
(|
ref
c
|
{
!
c
.is_ascii
()
||
self
.disallowed_whitespace
(
*
c
)
||
c
.is_control
()
||
self
.invalid_characters
.c
hars
()
.any
(|
ref
ic
|
ic
==
c
)
self
.invalid_characters
.c
ontains
(
*
c
)
})
}
...
...
Brad King
@brad.king
mentioned in commit
35bfe7ef
·
Jun 06, 2019
mentioned in commit
35bfe7ef
mentioned in commit 35bfe7ef508262ad24d5be76bf4f785219b5ad25
Toggle commit list
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