Skip to content

[PR] fixed issue#750 ArrayIndexOutOfBoundsException #816

Closed
@processing-bot

Description

@processing-bot

Original PR by @SaumyaKarnwal at benfry/processing4#816

Issue link : #750 (comment)

Problem : It wasn't able to parse exponents leading to ArrayIndexOutOfBoundsException

Solution : handled that edge case. it will now be able to parse values such as 6.2e-4

Behavior after modification:
image

Diff

else if (isOnDecimal && (c < '0' || c > '9')) {

-- else if (isOnDecimal && (c < '0' || c > '9')) {
++ else if (isOnDecimal && (c < '0' || c > '9') && c!='e' && c!='-') {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions