1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 14:56:39 +02:00

core: add missing slash at the end of weechat.org URLs

This commit is contained in:
Sébastien Helleu
2018-09-09 10:00:53 +02:00
parent 952640e88c
commit 1ff9d1f52a
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -494,8 +494,8 @@ TEST(CoreEval, EvalReplaceRegex)
hashtable_remove (pointers, "regex");
hashtable_set (options, "regex", "\\w+://\\S+");
hashtable_set (options, "regex_replace", "[ ${re:0} ]");
WEE_CHECK_EVAL("test: [ https://weechat.org ]",
"test: https://weechat.org");
WEE_CHECK_EVAL("test: [ https://weechat.org/ ]",
"test: https://weechat.org/");
/* add brackets around URLs (compiled regex) */
LONGS_EQUAL(0, string_regcomp (&regex, "\\w+://\\S+",
@@ -503,8 +503,8 @@ TEST(CoreEval, EvalReplaceRegex)
hashtable_set (pointers, "regex", &regex);
hashtable_remove (options, "regex");
hashtable_set (options, "regex_replace", "[ ${re:0} ]");
WEE_CHECK_EVAL("test: [ https://weechat.org ]",
"test: https://weechat.org");
WEE_CHECK_EVAL("test: [ https://weechat.org/ ]",
"test: https://weechat.org/");
regfree (&regex);
/* hide passwords (regex as string) */