s4

changeset 448:9724472a3cd2

hreflink: Regexp for anchor string should not include `]'.
author HIROSE Yuuji <yuuji@gentei.org>
date Mon, 14 Aug 2017 09:39:48 +0859
parents 4769510d6169
children d35c8e1d5db2
files s4-funcs.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/s4-funcs.sh	Fri Jul 14 10:25:06 2017 +0859
     1.2 +++ b/s4-funcs.sh	Mon Aug 14 09:39:48 2017 +0859
     1.3 @@ -466,7 +466,7 @@
     1.4    #   {{{URL}}	}	- <iframe src="URL"></iframe>
     1.5    #   {{{URL|height}}	- <iframe src="URL" height="height"></iframe>
     1.6    _hrefptn="[-A-Za-z0-9,.:;/~_%#&+?=@!]*"
     1.7 -  sed -e "s|\[\[\($_hrefptn\)\|\(.*\)\]\]|<a href=\"\1\">\2</a>|g" \
     1.8 +  sed -e "s|\[\[\($_hrefptn\)\|\([^]]*\)\]\]|<a href=\"\1\">\2</a>|g" \
     1.9        -e "s|\[\[\($_hrefptn\)\]\]|<a href=\"\1\">\1</a>|" \
    1.10        -e "s|{{{\($_hrefptn\)\|\(.*\)}}}|<iframe src=\"\1\" height=\"\2\"></iframe>|g" \
    1.11        -e "s|{{{\($_hrefptn\)}}}|<iframe src=\"\1\"></iframe>|g" \