Skip to content

Commit 75a3239

Browse files
committed
fix(wiki): restrict camelCase links to word characters
1 parent b6cc671 commit 75a3239

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eleventy.config.tracToHTML.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const urlpart = '[^\\s\\]]+'
1010
const url = `(https?://${urlpart})`
1111
const relativeLink = `(/${urlpart})`
1212
const hashLink = `(#${urlpart})`
13-
const camelCaseLink = `([A-Z][a-z]+[A-Z]${urlpart})`
13+
const camelCaseLink = `([A-Z][a-z]+[A-Z]\\w+)`
1414
const tracTicketLink = `trac:#(${urlpart})`
1515
const tracLink = `trac:(${urlpart})`
1616
const wikiLink = `wiki:(${urlpart})`

0 commit comments

Comments
 (0)