Documentation
    Preparing search index...

    Function findMostSensibleMatch

    • Among multiple matchers like ['.', 'b', '.'], when trying to fit in a key, which slot would maintain order the best? For example fitting 'a' into the above matcher order, it should go to the left slot, but fitting 'c' should make it go to the right slot.

      Parameters

      • matchers: RegExp[]
      • key: string

      Returns number