Skip to content

Fix Case insensetive matching in competitor check #27

@Parth94

Description

@Parth94

currently library doesnt identify "Sbi" as same as name mentioned in competitor "SBI"

Is this intentional or are we planning to bring in this support later?

Also on repo I can see we are already using Ignore case option but it doesnt seems to be working, so this is a bug mostly
https://github.com/guardrails-ai/competitor_check/blob/c905222840e409587a10fabe57c0c94e397f8d9f/validator/main.py#L88C12-L88C60
match = re.search(pattern, text, re.IGNORECASE)

Ran below on https://hub.guardrailsai.com/validator/guardrails/competitor_check

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions