Ticket #6 (closed defect: wontfix)
CamelCase matches too much
| Reported by: | Ben | Owned by: | sheep |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | Hatta Wiki | Version: | 1.3.3dev |
| Keywords: | camelcase | Cc: |
Description
Please fix your CamelCase regex as it matches way too much words:
- A_B_C
- FOO
Change History
comment:2 Changed 2 years ago by sheep
I mean if you use variable names or such, you should put them inside {{{...}}} anyways. If it's some acronym, you probably want a wiki page with explanation what it means too.
comment:3 Changed 2 years ago by Ben
- Priority set to Normal
From our universal reference Wikipedia:
CamelCase is the practice of writing compound words or phrases in which the elements are joined without spaces, with each element's initial letter capitalized within the compound, and the first letter is either upper or lower case — as in "LaBelle", BackColor, "McDonald's", or "iPod".
About my examples:
- A_B_C is not even a word.
- FOO does not contains lower case letters
If you want those one to match, make them match another regex and make this other regex optional. Don't assume anyone wants it.

What's wrong about matching those words?