• Hi All,

    Take a look at the example below:

    var a = "*";
    
    console.log(a.indexOf("hello")); // == 1?? --> -1 expected
    console.log(a.indexOf("world")); // == 1?? --> -1 expected
    

    Is this a bug?

    Regards,

    Alex

  • Sure looks like it :) I'll get it fixed for 1v64

  • Great :) thanks!

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

String.indexOf() is not working correctly for "*"

Posted by Avatar for Alex @Alex

Actions