Skip to content

lastIndexOf not returning correct result #802

@johnysusanto

Description

@johnysusanto

I found this bug while working with jQuery plugin named mentionsinput (http://podio.github.com/jquery-mentions-input/).

Basically the lastIndexOf call is not picking up the correct index ( it's always giving back -1 ).

The line is as below, found under checkTriggerChar() :
var triggerCharIndex = _.lastIndexOf(inputBuffer, triggerChar);

I had to switch to the native Javascript lastIndexOf() to get around it at this point.
Seems like this is happening since the new 1.4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions