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:
@@ -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 (®ex, "\\w+://\\S+",
|
||||
@@ -503,8 +503,8 @@ TEST(CoreEval, EvalReplaceRegex)
|
||||
hashtable_set (pointers, "regex", ®ex);
|
||||
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 (®ex);
|
||||
|
||||
/* hide passwords (regex as string) */
|
||||
|
||||
Reference in New Issue
Block a user