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 diff
     1.1 --- a/s4-funcs.sh	Tue Dec 12 15:19:33 2017 +0900
     1.2 +++ b/s4-funcs.sh	Mon Jan 15 09:33:12 2018 +0900
     1.3 @@ -469,7 +469,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 -  _hrefptn="[^#][^][()<>]*"
     1.8 +  _hrefptn="[A-Za-z0-9/~%+?=@!.][^][()<> ]*"	# URL should start with ASCII
     1.9    sed -e "s|\[\[\#\([0-9][0-9]*\)\]\]|<a href=\"?aid\1\">#\1</a>|g" \
    1.10        -e "s|\[\[#\([^]&]*\)\]\]|<a href=\"?kwd=\1\&stage=searchart\">\#\1</a>|g" \
    1.11        -e "s|\[\[\($_hrefptn\)\|\([^]]*\)\]\]|<a href=\"\1\">\2</a>|g" \