Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LarvaTagger.jl
Manage
Activity
Members
Labels
Plan
Issues
25
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nyx
LarvaTagger.jl
Commits
d701a755
Commit
d701a755
authored
2 years ago
by
François LAURENT
Browse files
Options
Downloads
Patches
Plain Diff
#55
: _large-suffixed tags detected together with their suffix-free variants
parent
411abf2a
No related branches found
No related tags found
No related merge requests found
Pipeline
#89709
passed with stage
in 7 minutes and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/files.jl
+8
-2
8 additions, 2 deletions
src/files.jl
with
8 additions
and
2 deletions
src/files.jl
+
8
−
2
View file @
d701a755
...
...
@@ -158,13 +158,19 @@ function tryopenfile(controller, path; reload::Bool=false)
)
fallback_color
=
theme
[
:
LarvaPlot
][
:
fallback_color
]
existingtags
=
records
.
tags
# following issue #55, we need to identify situations where _large-suffixed
# tags are found together with their suffix-free variants
apply_default_convention
=
false
for
tag
in
existingtags
if
tag
in
keys
(
default_convention
)
apply_default_convention
=
true
break
variant
,
suffix
=
rsplit
(
string
(
tag
),
'_'
;
limit
=
2
)
if
suffix
==
"large"
&&
Symbol
(
variant
)
in
existingtags
apply_default_convention
=
true
break
end
end
end
#
for
tag
in
existingtags
active′
=
tag
in
keys
(
default_convention
)
tag′
=
active′
?
tag
:
get
(
related_tags
,
tag
,
tag
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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