summaryrefslogtreecommitdiff
path: root/doc/ja/weechat_user.ja.adoc
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2019-01-26 10:15:35 +0100
committerSébastien Helleu <flashcode@flashtux.org>2019-01-26 10:15:35 +0100
commit6d217ca8c54b53a3741992c63eefb704fc9de906 (patch)
tree6ed90c91b7a6e162c29ed8e15e084a4d54c98214 /doc/ja/weechat_user.ja.adoc
parent73a4901fe1f3ed884efcbb49d204d1466215f89c (diff)
downloadweechat-6d217ca8c54b53a3741992c63eefb704fc9de906.zip
doc: fix regex examples to be compatible with FreeBSD
The following special sequences are not supported in regular expressions on FreeBSD: - "\w": replaced with "[a-zA-Z0-9_]" - "\S": replaced with "[^ ]" (it should be "[^ \t\n\r\f\v]", but in practice only spaces could be a problem when we use this sequence).
Diffstat (limited to 'doc/ja/weechat_user.ja.adoc')
-rw-r--r--doc/ja/weechat_user.ja.adoc6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/ja/weechat_user.ja.adoc b/doc/ja/weechat_user.ja.adoc
index 556b758b7..11cfa276f 100644
--- a/doc/ja/weechat_user.ja.adoc
+++ b/doc/ja/weechat_user.ja.adoc
@@ -3789,7 +3789,7 @@ WeeChat によって使われる値に影響を及ぼします
例: "*" で囲まれた文字を太字にする:
----
-/\*(\S+)\*/*${color:bold}${re:1}${color:-bold}*/
+/\*([^ ]+)\*/*${color:bold}${re:1}${color:-bold}*/
----
例: デフォルトトリガ _server_pass_ はこの正規表現を使って、`/server`
@@ -3797,7 +3797,7 @@ WeeChat によって使われる値に影響を及ぼします
`*` で置換しています):
----
-==^(/(server|connect) .*-(sasl_)?password=)(\S+)(.*)==${re:1}${hide:*,${re:4}}${re:5}
+==^(/(server|connect) .*-(sasl_)?password=)([^ ]+)(.*)==${re:1}${hide:*,${re:4}}${re:5}
----
[NOTE]
@@ -4069,7 +4069,7 @@ string/string) が含まれています。
URL を緑色にする:
----
-/trigger add url_color modifier weechat_print "${tg_notify}" "==\S+://\S+==${color:green}${re:0}${color:reset}=="
+/trigger add url_color modifier weechat_print "${tg_notify}" "==[a-zA-Z0-9_]+://[^ ]+==${color:green}${re:0}${color:reset}=="
----
[NOTE]