Bugs item #1020227, was opened at 2004-09-01 02:18
Message generated for change (Comment added) made by chasetec
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1020227&group_id=22866

Category: Nukes
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Matthieu Chase Heimer (chasetec)
Assigned to: Julien Viet (cooperfbi)
Summary: [url] tags not parsed correctly in BB

Initial Comment:
When posting or previewing a message the [url] tags
aren't proccessed correctly. This affects both Nukes
1.1 cvs and whatever is running on jboss.org(1.0 I'm
guessing).

If two url's appear on the same line in a BB posting
then they will be displayed incorrectly. For
example(hoping HTML doesn't get stripped here..) the line:
[url]http://www.kde-look.org/index.html[/url] and
[url]http://art.gnome.org/[/url]

Will be rendered as:
<a href="http://www.kde-look.org/index.html[/url] and
[url]http://art.gnome.org/"; target="_blank"
class="postlink">http://www.kde-look.org/index.html[/url]
and [url]http://art.gnome.org/</a>

At first glance this appears to be an issue with the
Lucene code in Nukes but I've never used Lucene so I
thought someone else might have an easier time at this one.

-Chase 

----------------------------------------------------------------------

>Comment By: Matthieu Chase Heimer (chasetec)
Date: 2004-10-11 11:36

Message:
Logged In: YES 
user_id=1107487

Turns out it was a JFLex issue. The regular expression
matching was too greedy. The fix has been applied in the 1.1
branch and is shown below.

In
/cvsroot/jboss/nukes/common/src/main/org/jboss/nukes/common/format/code/Analyzer.flex

-   "[url"~["]"].*"[/url]" { return token(LINK,
yytext().substring(4, ytext().length() - 6)); }

+   "[url"[^"["]*"]"[^"["]*"[/url]" { return token(LINK,
yytext().substring(4, yytext().length() - 6)); }

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1020227&group_id=22866


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to