Module:LinkParser: Difference between revisions
// via Wikitext Extension for VSCode Tag: Manual revert |
// via Wikitext Extension for VSCode |
||
| Line 1: | Line 1: | ||
-- Module:LinkParser | -- Module:LinkParser | ||
-- Parses links inserted by editors in templates, strips them of the protocol part, leading "www.", and any trailing "/", while otherwise printing exactly what was entered to minimize spoofing | -- Parses links inserted by editors in templates, strips them of the protocol part, leading "www.", and any trailing "/", while otherwise printing exactly what was entered to minimize spoofing | ||
local p = {} | local p = {} | ||
-- Cache for previously processed URLs ( | -- Cache for previously processed URLs (no persistence) | ||
local stripCache = {} | local stripCache = {} | ||