Jump to content

Module:Citation/CS1: Difference between revisions

m
is_parameter_ext_wikilink() fix;
m>Trappist the monk
(Synch from sandbox;)
m>Trappist the monk
m (is_parameter_ext_wikilink() fix;)
Line 359: Line 359:
local scheme, domain;
local scheme, domain;


value = value:gsub ('([^%s/])/%a.*', '%1'); -- strip path information (the capture prevents false replacement of '//')
value = value:gsub ('([^%s/])/[%a%d].*', '%1'); -- strip path information (the capture prevents false replacement of '//')


if value:match ('%f[%[]%[%a%S*:%S+.*%]') then -- if ext wikilink with scheme and domain: [xxxx://yyyyy.zzz]
if value:match ('%f[%[]%[%a%S*:%S+.*%]') then -- if ext wikilink with scheme and domain: [xxxx://yyyyy.zzz]
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.