bee-san / pyWhat

🐸 Identify anything. pyWhat easily lets you identify emails, IP addresses, and more. Feed it a .pcap file or some text and it'll tell you what it is! 🧙‍♀️

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make a test that tests whether the names of Regex are capitalised

bee-san opened this issue · comments

When someone submits a regex with:

"name": "all lowercase regex"

The test should fail and instead should ask for:

"name": "All Lowercase Regex"

See:
https://www.geeksforgeeks.org/title-in-python/

Original mention of issue

As you are already enforcing the leading ^ and ending $ in regex and testing it. This could also be integrated as a test. (Like name.split(" "), iterate and maybe ignore single letter words)

Yes, we should have good regex.json tests.

Originally posted by @piatrashkakanstantinass in #204 (comment)

The thing with .title() is that it will break words like SSH or URL.
I can work on a text if you want to 😉

The thing with .title() is that it will break words like SSH or URL. I can work on a text if you want to 😉

Sure! :)