Skip to content

Commit 8b0e366

Browse files
committed
fix(wiki): fix undefined values
1 parent 0d773c7 commit 8b0e366

3 files changed

Lines changed: 12 additions & 6 deletions

File tree

content/wiki/RecentChanges.njk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@ eleventyImport:
77

88
<p>jQuery issues have moved to <a href="https://github.com/jquery/jquery/issues">GitHub</a>. This site is now a static version of the old Trac bugs site. Version history for wiki pages is no longer available.</p>
99

10+
<p>Trac macros and some wiki formatting (such as tables) are no longer supported. Full Trac Documentation is available at <a href="https://trac.edgewall.org/">https://trac.edgewall.org</a>.
11+
</p>
12+
1013
<p>Below is an index of all the wikie pages that were available on the old site.</p>
1114

1215
<div class="flex-column">
1316
{% for wiki in collections.wiki %}
1417
<a href="{{ wiki.url }}" class="wiki-index-link">{{ wiki.data.title }}</a>
1518
{% endfor %}
16-
</div>
19+
</div>

content/wiki/TitleIndex.njk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@ eleventyImport:
77

88
<p>jQuery issues have moved to <a href="https://github.com/jquery/jquery/issues">GitHub</a>. This site is now a static version of the old Trac bugs site. Version history for wiki pages is no longer available.</p>
99

10+
<p>Trac macros and some wiki formatting (such as tables) are no longer supported. Full Trac Documentation is available at <a href="https://trac.edgewall.org/">https://trac.edgewall.org</a>.
11+
</p>
12+
1013
<p>Below is an index of all the wiki pages that were available on the old site.</p>
1114

1215
<div class="flex-column">
1316
{% for wiki in collections.wiki %}
1417
<a href="{{ wiki.url }}" class="wiki-index-link">{{ wiki.data.title }}</a>
1518
{% endfor %}
16-
</div>
19+
</div>

eleventy.config.tracToHTML.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ module.exports = function tracToHTML(text) {
3535
})
3636
// Linkify http links in brackets
3737
.replace(
38-
/(^|\s)(?:\[https?:\/\/([^ ]+) "([^"]+)"\])|(?:\[https?:\/\/([^\s\]]+)(?: ([^\]]+))?\])/g,
38+
/(^|\s)(?:(?:\[https?:\/\/([^ ]+) "([^"]+)"\])|(?:\[https?:\/\/([^\s\]]+)(?: ([^\]]+))?\]))/g,
3939
function (_match, space, quotedurl, quotedtext, url, text) {
4040
return `${space || ''}<a href="${
4141
quotedurl || url
@@ -46,7 +46,7 @@ module.exports = function tracToHTML(text) {
4646
)
4747
// Linkify hash links in brackets
4848
.replace(
49-
/(^|\s)(?:\[(#[^ ]+) "([^"]+)"\])|(?:\[(#[^\s\]]+)(?: ([^\]]+))?\])/g,
49+
/(^|\s)(?:(?:\[(#[^ ]+) "([^"]+)"\])|(?:\[(#[^\s\]]+)(?: ([^\]]+))?\]))/g,
5050
function (_match, space, quotedurl, quotedtext, url, text) {
5151
return `${space || ''}<a href="${
5252
quotedurl || url
@@ -57,7 +57,7 @@ module.exports = function tracToHTML(text) {
5757
)
5858
// Linkify CamelCase links in brackets
5959
.replace(
60-
/(^|\s)(?:\[([A-Z][a-z]+[A-Z][^ ]+) "([^"]+)"\])|(?:\[([A-Z][a-z]+[A-Z][^\s\]]+)(?: ([^\]]+))?\])/g,
60+
/(^|\s)(?:(?:\[([A-Z][a-z]+[A-Z][^ ]+) "([^"]+)"\])|(?:\[([A-Z][a-z]+[A-Z][^\s\]]+)(?: ([^\]]+))?\]))/g,
6161
function (_match, space, quotedpage, quotedtext, page, text) {
6262
return `${space || ''}<a href="/wiki/${quotedpage || page}">${
6363
quotedtext || text || page
@@ -66,7 +66,7 @@ module.exports = function tracToHTML(text) {
6666
)
6767
// Linkify trac links
6868
.replace(
69-
/(^|\s)(?:\[trac:([^ ]+) "([^"]+)"\])|(?:\[trac:([^\s\]]+)(?: ([^\]]+))?\])/g,
69+
/(^|\s)(?:(?:\[trac:([^ ]+) "([^"]+)"\])|(?:\[trac:([^\s\]]+)(?: ([^\]]+))?\]))/g,
7070
function (_match, space, quotepage, quotedtext, page, text) {
7171
return `${space || ''}<a href="https://trac.edgewall.org/intertrac/${
7272
quotepage || page

0 commit comments

Comments
 (0)