View Issue Details

IDProjectCategoryView StatusLast Update
0002994mantisbtbugtrackerpublic2003-12-13 04:45
ReporterBertHuijben Assigned Tojfitzell  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Summary0002994: Hyperlinking bug id's doesn't work as expected
Description

The first bug id is not automatically hyperlinked..

The same problem exists in the description, additional info, reproduce steps and bug notes

Additional Information

Example:
#2001 #2002 0002003
(If it works as expected #2001 is NOT linked and #2002 and 0002003 ARE linked in the above line.. and all are in this line)

TagsNo tags attached.

Activities

BertHuijben

BertHuijben

2003-02-24 00:17

reporter   ~0003793

Uhmm.. those bugnumbers do not exist in this database
New example:

0002545 0001241 0002901

(Bugzilla has some feature where resolved bugs are striped through when linked)

BertHuijben

BertHuijben

2003-02-24 00:19

reporter   ~0003794

Ok... I have this problem in my DB (with existing bugs) and saw it on one location in this DB, but can't reproduce it as easy as expected

BertHuijben

BertHuijben

2003-02-24 00:19

reporter   ~0003795

Ok... I have this problem in my DB (with existing bugs) and saw it on one location in this DB (See 0002704), but can't reproduce it as easy as expected..

jfitzell

jfitzell

2003-02-24 07:21

reporter   ~0003796

Fixed in CVS. Bug IDs could only match if they were preceeded by whitespace. This was a conscious choice but was perhaps a bit restrictive. For now, it will match any non word character (a word character is a letter, a number, or an underscore).

We may tighten this up a little again in the future.

Related Changesets

MantisBT: master 0fe5f037

2003-02-24 01:23

Julian Fitzell


Details Diff
a fix (at least for now) for issue 0002994

* core/string_api.php
(string_process_bug_link): loosen our bug tag matching rules to allow
matches whenever the bug tag comes after a non-word character (\W in
regular expressions) instead of only after whitesapce. This may be too
loose, but we will see.

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2008 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9
Affected Issues
0002994
mod - doc/ChangeLog Diff File
mod - core/string_api.php Diff File