# HG changeset patch # User HIROSE Yuuji # Date 1515976392 -32400 # Node ID 3dc012eb1ad0284c50440c6038361cdf9fb6097d # Parent 856710101c49f6a81ba08f52d2bd06224b9625c0 URL pattern fixed to exclude URL example which starts with multibyte diff -r 856710101c49 -r 3dc012eb1ad0 s4-funcs.sh --- 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}} } - # {{{URL|height}} - _hrefptn="[-A-Za-z0-9,.:;/~_%#&+?=@!]*" - _hrefptn="[^#][^][()<>]*" + _hrefptn="[A-Za-z0-9/~%+?=@!.][^][()<> ]*" # URL should start with ASCII sed -e "s|\[\[\#\([0-9][0-9]*\)\]\]|#\1|g" \ -e "s|\[\[#\([^]&]*\)\]\]|\#\1|g" \ -e "s|\[\[\($_hrefptn\)\|\([^]]*\)\]\]|\2|g" \