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

feat: Normalize file names in sync module #2661

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

StanGirard
Copy link
Collaborator

This commit adds a new utility function remove_special_characters to the normalize.py module in the sync/utils directory. The function removes special characters from file names by normalizing the input string and using regular expressions to remove non-alphanumeric characters.

The function is then used in the list_files.py module in the sync/utils directory to normalize the names of files retrieved from Google Drive and Azure Drive. This ensures that the file names are free of special characters, improving consistency and compatibility with other parts of the system.

This commit adds a new utility function `remove_special_characters` to the `normalize.py` module in the `sync/utils` directory. The function removes special characters from file names by normalizing the input string and using regular expressions to remove non-alphanumeric characters.

The function is then used in the `list_files.py` module in the `sync/utils` directory to normalize the names of files retrieved from Google Drive and Azure Drive. This ensures that the file names are free of special characters, improving consistency and compatibility with other parts of the system.
Copy link

vercel bot commented Jun 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
quivrapp 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jun 12, 2024 9:08am

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Jun 12, 2024
@StanGirard StanGirard merged commit 8e5af2c into main Jun 12, 2024
2 of 3 checks passed
@StanGirard StanGirard deleted the fix/sync-file-special-characters branch June 12, 2024 09:08
@dosubot dosubot bot added the area: backend Related to backend functionality or under the /backend directory label Jun 12, 2024
Copy link

sonarcloud bot commented Jun 12, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

StanGirard added a commit that referenced this pull request Jun 12, 2024
🤖 I have created a release *beep* *boop*
---


## 0.0.262 (2024-06-12)

## What's Changed
* Update README.md by @ferozemohideen in
#2660
* feat: Normalize file names in sync module by @StanGirard in
#2661


**Full Changelog**:
v0.0.261...v0.0.262

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: backend Related to backend functionality or under the /backend directory size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant