Code Monkey home page Code Monkey logo

Comments (5)

irfanderdiyok avatar irfanderdiyok commented on August 24, 2024 1

Thank You @ILLNOISE143

from schema.

acdamiani avatar acdamiani commented on August 24, 2024 1

Just committed a fix for this. My guess is that this issue was caused by non-ASCII search characters. I was trying to do something clever here and use a more efficient search algorithm, but it looks like it's too issue-prone to be worth it. I've just changed it to a String.IndexOf instead.

from schema.

acdamiani avatar acdamiani commented on August 24, 2024

Thanks, I'll look into this.

from schema.

acdamiani avatar acdamiani commented on August 24, 2024

I'm having trouble reproducing this issue. Can you provide the following:

  • The search query that you used when you got this error
  • Any custom nodes or conditionals that you have created
  • What were you trying to do when you encountered this error?

from schema.

ILLNOISE143 avatar ILLNOISE143 commented on August 24, 2024
private static int Search(string needle, string haystack)
{
    int[] T = Preprocess(needle);
    int skip = 0;

    while (haystack.Length - skip >= needle.Length)
    {
        if (Same(haystack.Substring(skip), needle, needle.Length))
            return skip;

        // skip = skip + T[haystack[skip + needle.Length]];
        skip += 1;
    }

    return -1;
}

Hi Changed Search to this in QuickSearch.cs and this worked for me :)

from schema.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.