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

regexp no longer required #307

Closed
Skeeve opened this issue Mar 14, 2024 · 1 comment · Fixed by #308
Closed

regexp no longer required #307

Skeeve opened this issue Mar 14, 2024 · 1 comment · Fixed by #308

Comments

@Skeeve
Copy link
Contributor

Skeeve commented Mar 14, 2024

After switching to ParseFloat, you no longer require the regexp:

reNumericText = regexp.MustCompile(`^\s*[+\-]?\d*[.]?\d+\s*$`)

@jedib0t
Copy link
Owner

jedib0t commented Mar 15, 2024

Thanks for the catch. Was benchmarking the performance difference and forgot to remove that after testing.

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 a pull request may close this issue.

2 participants