Skip to content

Conversation

mpkorstanje
Copy link
Contributor

🤔 What's changed?

The original regex didn't match the start or end of line. Because of that any text with a number in the middle would be considered a number.

Expanded it a little bit to also consider spaces and periods as thousands- and decimal-separators.

⚡️ What's your motivation?

Fixes: #404

🏷️ What kind of change is this?

  • 🐛 Bug fix (non-breaking change which fixes a defect)

📋 Checklist:

  • I agree to respect and uphold the Cucumber Community Code of Conduct
  • I've changed the behaviour of the code
    • I have added/updated tests to cover my changes.
  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.
  • Users should know about my change
    • I have added an entry to the "Unreleased" section of the CHANGELOG, linking to this pull request.

Copy link

netlify bot commented Sep 17, 2025

Deploy Preview for cucumber-react-preview ready!

Name Link
🔨 Latest commit 632a980
🔍 Latest deploy log https://app.netlify.com/projects/cucumber-react-preview/deploys/68cb2cdb4aaf2a0008b79e8a
😎 Deploy Preview https://deploy-preview-405--cucumber-react-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mpkorstanje mpkorstanje force-pushed the improve-number-detection branch 2 times, most recently from d4ad5b8 to a4765c1 Compare September 17, 2025 21:47
The original regex didn't match the start or end of line. Because of
that any text with a number in the middle would be considered a number.

Expanded it a little bit to also consider spaces and periods as
thousands- and decimal-separators.

Fixes: #404
@davidjgoss davidjgoss merged commit 290fd28 into main Sep 18, 2025
6 checks passed
@davidjgoss davidjgoss deleted the improve-number-detection branch September 18, 2025 23:13
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.

Control over Table Column Alignment
2 participants