Mercurial > hgrepos > hgweb.cgi > 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 wrap: on
line diff
--- a/s4-funcs.sh Fri Jul 14 10:25:06 2017 +0859 +++ b/s4-funcs.sh Mon Aug 14 09:39:48 2017 +0859 @@ -466,7 +466,7 @@ # {{{URL}} } - <iframe src="URL"></iframe> # {{{URL|height}} - <iframe src="URL" height="height"></iframe> _hrefptn="[-A-Za-z0-9,.:;/~_%#&+?=@!]*" - sed -e "s|\[\[\($_hrefptn\)\|\(.*\)\]\]|<a href=\"\1\">\2</a>|g" \ + sed -e "s|\[\[\($_hrefptn\)\|\([^]]*\)\]\]|<a href=\"\1\">\2</a>|g" \ -e "s|\[\[\($_hrefptn\)\]\]|<a href=\"\1\">\1</a>|" \ -e "s|{{{\($_hrefptn\)\|\(.*\)}}}|<iframe src=\"\1\" height=\"\2\"></iframe>|g" \ -e "s|{{{\($_hrefptn\)}}}|<iframe src=\"\1\"></iframe>|g" \