Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
medialibrary
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pierre Lamot
medialibrary
Commits
8bdc555b
Commit
8bdc555b
authored
1 year ago
by
Alaric Senat
Committed by
Alaric Senat
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
TitleAnalyzer: Fix typos
parent
ded559f9
No related branches found
Branches containing commit
Tags
3.1.5
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/utils/TitleAnalyzer.cpp
+3
-3
3 additions, 3 deletions
src/utils/TitleAnalyzer.cpp
with
3 additions
and
3 deletions
src/utils/TitleAnalyzer.cpp
+
3
−
3
View file @
8bdc555b
...
@@ -76,7 +76,7 @@ std::string sanitize( const std::string& fileName )
...
@@ -76,7 +76,7 @@ std::string sanitize( const std::string& fileName )
// A small subset of patterns to remove that contain separators, and
// A small subset of patterns to remove that contain separators, and
// that we want to match using those separators. For instance, "5.1"
// that we want to match using those separators. For instance, "5.1"
// would be changed to "5 1", and we don't want to remove a potentially
// would be changed to "5 1", and we don't want to remove a potentially
// relev
e
nt string by assuming there was a dot before.
// relev
a
nt string by assuming there was a dot before.
{
{
std
::
regex
{
std
::
regex
{
"((
\\
b|"
SEPARATORS
")"
"((
\\
b|"
SEPARATORS
")"
...
@@ -100,7 +100,7 @@ std::string sanitize( const std::string& fileName )
...
@@ -100,7 +100,7 @@ std::string sanitize( const std::string& fileName )
{
{
// File size, which we need to handle before removing a potential dot
// File size, which we need to handle before removing a potential dot
// We do not use \b before the size pattern to avoid considering
// We do not use \b before the size pattern to avoid considering
// <something>.<number>.<num
m
ber>GB as a size, we want a clean
// <something>.<number>.<number>GB as a size, we want a clean
// <something unrelated><numerator>.<denominator><unit> pattern
// <something unrelated><numerator>.<denominator><unit> pattern
std
::
regex
{
std
::
regex
{
"(
\\
s|-|_)(
\\
d{1,4}(
\\
.
\\
d{1,3})?(MB|GB))
\\
b"
,
"(
\\
s|-|_)(
\\
d{1,4}(
\\
.
\\
d{1,3})?(MB|GB))
\\
b"
,
...
@@ -121,7 +121,7 @@ std::string sanitize( const std::string& fileName )
...
@@ -121,7 +121,7 @@ std::string sanitize( const std::string& fileName )
{
{
// Since this pattern ends with a '!', we can't use it with the other
// Since this pattern ends with a '!', we can't use it with the other
// list of patterns that are bound by `\b`. `\b` implies that the
// list of patterns that are bound by `\b`. `\b` implies that the
// current caracter is an alphanumerical character, which isn't the
// current c
h
aracter is an alphanumerical character, which isn't the
// case of '!'
// case of '!'
std
::
regex
{
std
::
regex
{
"
\\
bPuyaSubs!"
,
"
\\
bPuyaSubs!"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment