Skip to content

Conversation

@webdeveric
Copy link
Owner

  • Updated RegExp for isNumericString()
  • Added tests for isNumericString()

@webdeveric webdeveric requested a review from Copilot September 9, 2025 18:32
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the regular expression pattern for the isNumericString() function to better handle decimal numbers that start with a decimal point (e.g., ".89") and adds comprehensive test coverage for the function.

  • Updated the RegExp pattern to support numbers starting with a decimal point
  • Added comprehensive test cases covering valid and invalid numeric string inputs
  • Added a test demonstrating usage with Array.filter()

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/predicate/isNumericString.ts Updated RegExp pattern to handle decimal numbers starting with a dot
test/predicate/isNumericString.test.ts Added comprehensive test suite for isNumericString function

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@webdeveric webdeveric merged commit ced6502 into master Sep 9, 2025
3 checks passed
@webdeveric webdeveric deleted the dev branch September 9, 2025 18:32
@github-actions
Copy link

github-actions bot commented Sep 9, 2025

🎉 This PR is included in version 0.71.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants