Skip to content

Fix comment card removal#62

Merged
paulromano merged 1 commit intomainfrom
fix-comment-blank
Dec 9, 2025
Merged

Fix comment card removal#62
paulromano merged 1 commit intomainfrom
fix-comment-blank

Conversation

@paulromano
Copy link
Contributor

The regex to find and remove comment cards currently breaks the following:

m1   1001.70c 1.0 &
code=0
m2   1001.70c 1.0

Namely, the regex doesn't enforce that the c character be following by one or more blanks (which is specified in the MCNP manual). This PR updates the regex to enforce that either the c is following by a space/tab, or that it is followed immediately by a newline character.

@paulromano paulromano enabled auto-merge (squash) December 9, 2025 19:22
@paulromano paulromano merged commit 243a994 into main Dec 9, 2025
1 check passed
@codecov
Copy link

codecov bot commented Dec 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.23%. Comparing base (aa881ed) to head (fc227f4).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #62   +/-   ##
=======================================
  Coverage   87.23%   87.23%           
=======================================
  Files           3        3           
  Lines         752      752           
  Branches      198      198           
=======================================
  Hits          656      656           
  Misses         52       52           
  Partials       44       44           

☔ 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.

@paulromano paulromano deleted the fix-comment-blank branch December 9, 2025 20:45
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