Mercurial > hgrepos > hgweb.cgi > s4
changeset 482:3dc012eb1ad0
URL pattern fixed to exclude URL example which starts with multibyte
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Mon, 15 Jan 2018 09:33:12 +0900 |
parents | 856710101c49 |
children | be821d63848c |
files | s4-funcs.sh |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/s4-funcs.sh Tue Dec 12 15:19:33 2017 +0900 +++ b/s4-funcs.sh Mon Jan 15 09:33:12 2018 +0900 @@ -469,7 +469,7 @@ # {{{URL}} } - <iframe src="URL"></iframe> # {{{URL|height}} - <iframe src="URL" height="height"></iframe> _hrefptn="[-A-Za-z0-9,.:;/~_%#&+?=@!]*" - _hrefptn="[^#][^][()<>]*" + _hrefptn="[A-Za-z0-9/~%+?=@!.][^][()<> ]*" # URL should start with ASCII sed -e "s|\[\[\#\([0-9][0-9]*\)\]\]|<a href=\"?aid\1\">#\1</a>|g" \ -e "s|\[\[#\([^]&]*\)\]\]|<a href=\"?kwd=\1\&stage=searchart\">\#\1</a>|g" \ -e "s|\[\[\($_hrefptn\)\|\([^]]*\)\]\]|<a href=\"\1\">\2</a>|g" \