Bug: WikiWords can be boundary-ified with hyphens LikeThis-AndSuch
See test case. Not a critical bug. I thought that wiki words were indicated by \sCapitalizedWords\s but it looks like they can also be \sCapitalizedWords-MoreWordsButLeftHandSideOnly. I think I prefer the former, that is, that the following would not have any wiki-ified link:
SomeWordFollowedByDash-LikeThis. Or, at least, the word should have each side as wikiwords. Perhaps this is not-a-bug.
Test case
If I want to make some
WikiWords I can type some
WordsWithCaps and also use
brackets like this but the interesting thing is that the regex to find
WikiWords also recognizes
CapitalWordsWhichAreHyphenated-ButOnlyTheLeftHandSide-OfTheHypen. Why only the left hand side, why not the middle or the right hand side (i.e. inconsistency = bug).
If double brackets are used then everything works as expected, like this
CapitalWordsWhichAreHyphenated-ButOnlyTheLeftHandSide-OfTheHypen.
Perhaps I will enter more test cases to see what breaks:
Environment
| TWiki version: |
Dec2001 and current (works here) |
| TWiki plugins: |
|
| Server OS: |
linux |
| Web server: |
apache |
| Perl version: |
? |
| Client OS: |
Win9x |
| Web Browser: |
IE |
--
JonathanCline - 15 Jul 2002
Follow up
This might be debatable, but this is the current spec:
- WikiWords are clearly defined as
AAbbCCandOptionAlpha123; rendering stops with the first non [a-zA-Z0-9] character. WikiWords are the preferred "Wikish" way of linking.
- The double square bracket rule filters any illegal characters for topic names, that means dashes and underlines can be used. Double square bracket linking is the more traditional way of linking.
- (A controversial spec is to form WikiWords out of double square bracket links that include spaces)
Fix record
--
PeterThoeny - 17 Jul 2002