Skip to content

Conversation

@DLM-unipd
Copy link

Removed the is_numeric() check since the preg_replace() function already handles the extraction of valid numeric values. This fix properly processes inputs with comma decimal separators and maintains the intended behavior while simplifying the code.

The original code did not handle non-standard numeric values correctly, e.g. using comma as decimal separator (42,6).

Removed the is_numeric() check since the preg_replace() function already handles the extraction of valid numeric values. This fix properly processes inputs with comma decimal separators and maintains the intended behavior while simplifying the code.
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