Skip to content

fix: minor code fixes#769

Merged
phil-davis merged 1 commit into
sabre-io:masterfrom
phil-davis:minor-code-20260615
Jun 15, 2026
Merged

fix: minor code fixes#769
phil-davis merged 1 commit into
sabre-io:masterfrom
phil-davis:minor-code-20260615

Conversation

@phil-davis

Copy link
Copy Markdown
Contributor

Modifiers at the end of a regex should not have whitespace before them. Change "# xi" to just "#xi".

Date format "t" returns a string that is the numbers of days in the month. Explicitly cast it to int when using it in a calculation.

These were two minor things pointed out by my editor. Existing tests will cover the changes here. There is no actual bug being fixed.

Modifiers at the end of a regex should not have whitespace before them.
Change "# xi" to just "#xi".

Date format "t" returns a string that is the numbers of days in the month.
Explicitly cast it to int when using it in a calculation.

These were two minor things pointed out by my editor.
Existing tests will cover the changes here. There is no actual
bug being fixed.
@phil-davis phil-davis merged commit 0961a0a into sabre-io:master Jun 15, 2026
4 checks passed
@codecov

codecov Bot commented Jun 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.66%. Comparing base (fb1aa15) to head (55cb62c).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #769   +/-   ##
=========================================
  Coverage     98.66%   98.66%           
  Complexity     1757     1757           
=========================================
  Files            71       71           
  Lines          5163     5163           
=========================================
  Hits           5094     5094           
  Misses           69       69           

☔ View full report in Codecov by Harness.
📢 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.

@phil-davis phil-davis deleted the minor-code-20260615 branch June 15, 2026 09:04
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.

1 participant