Fossil SCM
add hyphen to pattern via unicode escape
Commit
439d7a36e83275baeaa31c3e646250471e1cb485d673fdf778ce68ef47dccc0d
Parent
70b2569ec0a0ee8…
1 file changed
+1
-1
+1
-1
| --- src/tktsetup.c | ||
| +++ src/tktsetup.c | ||
| @@ -521,11 +521,11 @@ | ||
| 521 | 521 | @ <tr><td class="tktDspLabel">Version Found In:</td> |
| 522 | 522 | @ <td colspan="3" valign="top" class="tktDspValue"> |
| 523 | 523 | @ <th1> |
| 524 | 524 | @ set versionlink "" |
| 525 | 525 | @ set urlfoundin [httpize $foundin] |
| 526 | -@ set tagpattern ^\[0-9A-Za-z_\\.\]+\$ | |
| 526 | +@ set tagpattern ^\[0-9A-Za-z_\\.\\x2d\]+\$ | |
| 527 | 527 | @ if [regexp $tagpattern $foundin] { |
| 528 | 528 | @ query {SELECT count(*) AS match FROM tag |
| 529 | 529 | @ WHERE tagname=concat('sym-',$foundin)} { |
| 530 | 530 | @ if {$match} {set versionlink "/timeline?t=$urlfoundin"} |
| 531 | 531 | @ } |
| 532 | 532 |
| --- src/tktsetup.c | |
| +++ src/tktsetup.c | |
| @@ -521,11 +521,11 @@ | |
| 521 | @ <tr><td class="tktDspLabel">Version Found In:</td> |
| 522 | @ <td colspan="3" valign="top" class="tktDspValue"> |
| 523 | @ <th1> |
| 524 | @ set versionlink "" |
| 525 | @ set urlfoundin [httpize $foundin] |
| 526 | @ set tagpattern ^\[0-9A-Za-z_\\.\]+\$ |
| 527 | @ if [regexp $tagpattern $foundin] { |
| 528 | @ query {SELECT count(*) AS match FROM tag |
| 529 | @ WHERE tagname=concat('sym-',$foundin)} { |
| 530 | @ if {$match} {set versionlink "/timeline?t=$urlfoundin"} |
| 531 | @ } |
| 532 |
| --- src/tktsetup.c | |
| +++ src/tktsetup.c | |
| @@ -521,11 +521,11 @@ | |
| 521 | @ <tr><td class="tktDspLabel">Version Found In:</td> |
| 522 | @ <td colspan="3" valign="top" class="tktDspValue"> |
| 523 | @ <th1> |
| 524 | @ set versionlink "" |
| 525 | @ set urlfoundin [httpize $foundin] |
| 526 | @ set tagpattern ^\[0-9A-Za-z_\\.\\x2d\]+\$ |
| 527 | @ if [regexp $tagpattern $foundin] { |
| 528 | @ query {SELECT count(*) AS match FROM tag |
| 529 | @ WHERE tagname=concat('sym-',$foundin)} { |
| 530 | @ if {$match} {set versionlink "/timeline?t=$urlfoundin"} |
| 531 | @ } |
| 532 |