Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strip probited initial character in Glossary CSV upload #12806

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

gersona
Copy link
Collaborator

@gersona gersona commented Oct 17, 2024

Proposed changes

Problematic initial characters are stripped from glossary terms before upload . Prohibited characters are:
{"=", "+", "-", "@", "|", "%"}

I chose this option over excluding the terms altogether

Checklist

  • Lint and unit tests pass locally with my changes.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have added documentation to describe my feature.
  • I have squashed my commits into logic units.
  • I have described the changes in the commit messages.

Other information

fixes #12792

Copy link

codecov bot commented Oct 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.18%. Comparing base (c8ecca0) to head (6f47ac9).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main   #12806   +/-   ##
=======================================
  Coverage   91.17%   91.18%           
=======================================
  Files         596      597    +1     
  Lines       61151    61201   +50     
  Branches     6345     6347    +2     
=======================================
+ Hits        55755    55804   +49     
  Misses       3745     3745           
- Partials     1651     1652    +1     
Files with missing lines Coverage Δ
weblate/formats/exporters.py 96.29% <100.00%> (+0.01%) ⬆️
weblate/machinery/base.py 93.66% <100.00%> (+0.40%) ⬆️
weblate/machinery/dummy.py 100.00% <100.00%> (ø)
weblate/machinery/tests.py 99.66% <100.00%> (+<0.01%) ⬆️
weblate/utils/csv.py 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add glossary check for source stings problematic in CSV
1 participant