• Wincent
    Menu
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Make "special link" matching a little stricter (wikitext, 9012ad4)

Created 2/11/2008, updated 3/5/2024
  • snippets

Expect "special links" to conform to a narrower syntax, /\A[a-z]+\/\d+\z/, to minimize the risk of false positives.

Signed-off-by: Greg Hurrell <greg@hurrell.net>

← Hook up "special link" treatment (wikitext, e36dc7e)
Perform prescan to identify special links (wikitext, e298dd6) →

All snippets

Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell with Rust (with help from Git and Neovim).