Skip to content

StartIndex cannot be less than zero. #1

Description

@LeoJHarris

Hi great work on this plugin, just a suggestion to possibly append a decimal point if it didn't happen to be there to catch index out of range exceptions:

 string number = behavior.Text.ToString();

            if (!number.Contains("."))
            {
                number += ".00";
            }

            string decimalValue = number.Substring(number.IndexOf("."));
            FormattedString fs = new FormattedString();

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