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

Fix edge case having a value with numeric start and also a prefix #239

Closed
wants to merge 2 commits into from

Conversation

Geethik07
Copy link
Contributor

Issue #, if available:
Fixes #238

Description of changes:
Added an extra flag check to not include an extra underscore for the value starting with number if it already has a prefix.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@Geethik07 Geethik07 requested a review from a team as a code owner March 13, 2025 22:18
@codecov-commenter
Copy link

codecov-commenter commented Mar 13, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.36%. Comparing base (022e891) to head (a849420).
Report is 38 commits behind head on main.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##              main     #239      +/-   ##
===========================================
- Coverage   100.00%   99.36%   -0.64%     
===========================================
  Files            4        4              
  Lines          132      157      +25     
  Branches        30       39       +9     
===========================================
+ Hits           132      156      +24     
- Misses           0        1       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.


expect(result).toBe('DB_1PASSWORD');
expect(result).not.toBe('DB__1PASSWORD');
expect(result.includes('__')).toBeFalsy();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct me if I'm wrong but aren't the last 2 expect calls redundant?

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