Interface GreedyAlgorithmOptions

Base algorithm options.

interface GreedyAlgorithmOptions {
    ignoreCase: boolean;
    ignoreSpaces: boolean;
    precision?: number;
}

Hierarchy (view full)

Properties

ignoreCase: boolean

If true, the algorithm will ignore the case of the characters. If false, the algorithm will consider the case of the characters.

Default

true
ignoreSpaces: boolean

Ignore or consider extra spaces. If true, the algorithm will ignore the spaces. If false, the algorithm will consider the spaces.

Default

false
precision?: number

The precision of the algorithm. This value is used to limit the number of rotations to find the matching substring. If this value is too high the algorithm will be n^2.

Default

5