string.htmlToEmail bug?
Daniel Berlinger
daniel at circumtech.com
Thu Oct 4 09:41:39 PDT 2001
string.htmlToEmail matches on a string.lower'ed pattern for the start of the URL but not for the end of the URL.
This line is from the bottom of the loop...
ix = string.patternMatch ("</a>", s)
rather than
ix = string.patternMatch ("</a>", string.lower (s))
The bug causes the text to get mangled slightly. As in this test:
input:
text text text <A HREF="http://link.link.com/">Link text link text link text</A> text text text
---
output:
text text text [1]k text link text link text text text text
[1] http://link.link.com/
---
Desired output (accomplished with string.lower for the end pattern):
text text text Link text link text link text [1] text text text
[1] http://link.link.com/
More information about the Frontier-Users
mailing list