openidec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit f3ed3d01fb0f7bdabd10f451ff4f3cd071ed7627
parent 49c8b4e83f11613d939e78916f47fb48b87430e9
Author: Peter Kosyh <p.kosyh@gmail.com>
Date:   Mon, 14 Sep 2020 21:59:06 +0300

regexp ii:// better

Diffstat:
Mii-node/web.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ii-node/web.go b/ii-node/web.go @@ -677,7 +677,7 @@ func str_esc(l string) string { var quoteRegex = regexp.MustCompile("^[^ >]*>") var urlRegex = regexp.MustCompile(`(http|ftp|https)://[^ <>"]+`) var url2Regex = regexp.MustCompile(`{{{href=[0-9]+}}}`) -var urlIIRegex = regexp.MustCompile(`ii://[a-zA-Z0-9]{20}`) +var urlIIRegex = regexp.MustCompile(`ii://[a-zA-Z0-9_\-.]+`) var base64Regex = regexp.MustCompile(`^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$`) func msg_clean(txt string) string {