zhujiangang / wikixmlj

Automatically exported from code.google.com/p/wikixmlj
0 stars 0 forks source link

Issue with "redirect" page detection #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
<text xml:space="preserve">#REDIRECT [[Albert Smith (footballer born 
1900)]]</text>

The redirect page detection only covers the case "#REDIRECT ", but not
"#redirect"
For example:
      <text xml:space="preserve">#redirect [[Vacuous truth]]</text>
      <text xml:space="preserve">#redirect[[Hybrid vehicle]]</text>
      <text xml:space="preserve">#Redirect [[Zhou Dynasty]]</text>
      <text xml:space="preserve">#REDirect [[Glenn Medeiros]]</text>

One solution is to match the pattern using case insensitive.

What is the expected output? What do you see instead?
Should be able to handle the other case "#redirect"

What version of the product are you using? On what operating system?
r43, linux

Please provide any additional information below.

Original issue reported on code.google.com by guoja...@gmail.com on 2 Nov 2012 at 3:58