mirror of
https://github.com/weechat/weechat.git
synced 2026-06-26 04:46:37 +02:00
core: use https for WeeChat URLs
This commit is contained in:
@@ -284,8 +284,8 @@ TEST(Eval, EvalReplaceRegex)
|
||||
hashtable_remove (pointers, "regex");
|
||||
hashtable_set (options, "regex", "\\w+://\\S+");
|
||||
hashtable_set (options, "regex_replace", "[ ${re:0} ]");
|
||||
WEE_CHECK_EVAL("test: [ http://weechat.org ]",
|
||||
"test: http://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+",
|
||||
@@ -293,8 +293,8 @@ TEST(Eval, EvalReplaceRegex)
|
||||
hashtable_set (pointers, "regex", ®ex);
|
||||
hashtable_remove (options, "regex");
|
||||
hashtable_set (options, "regex_replace", "[ ${re:0} ]");
|
||||
WEE_CHECK_EVAL("test: [ http://weechat.org ]",
|
||||
"test: http://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