Skip to content

[QUESTION] The Eligibility of Algorithm to check validity of Sri Lankan phone number #9435

@SpiderMath

Description

@SpiderMath

What would you like to share?

The algorithm in question: https://the-algorithms.com/algorithm/is-srilankan-phone-number

The repositories under the organisation The Algorithms are said to contain non-trivial algorithms of various sorts. However, the algorithm I present does not seem to have any major significance, and does not facilitate any learning for the user, for it has just a RegEx which you could use to detect whether a phone number is Sri Lankan or not. It is highly specific and I do not think it is a valid algorithm to be included in the repositories by what is stated in the documentation, yet why is it listed and added as an algorithm?

I'm opening this issue here because there is only a Python implementation for this, and none other, hence I felt this is a more appropriate place to open the issue.

(I sincerely apologise if my language sounds rude, English is not my first language, I do not mean any disrespect to anyone, it is simply an honest question which I had)

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting triageAwaiting triage from a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions