From 162e085b98f8f2c627a92402d2e38dda04fc3e48 Mon Sep 17 00:00:00 2001 From: dana Date: Mon, 18 Dec 2017 15:04:56 -0600 Subject: [PATCH] Add note about --smart-case smartness --- doc/rg.1 | 3 +++ doc/rg.1.md | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/rg.1 b/doc/rg.1 index 9841c270..2ed14b39 100644 --- a/doc/rg.1 +++ b/doc/rg.1 @@ -457,6 +457,9 @@ Overrides \-\-ignore\-case and \-\-smart\-case. Search case insensitively if the pattern is all lowercase. Search case sensitively otherwise. This is overridden by either \-\-case\-sensitive or \-\-ignore\-case. +Note: This feature is smart enough to treat simple classes like \\S as +lowercase, but may not handle more complex syntax like \\p{Ll} as +expected. .RS .RE .TP diff --git a/doc/rg.1.md b/doc/rg.1.md index 8009f69d..36c912c6 100644 --- a/doc/rg.1.md +++ b/doc/rg.1.md @@ -300,7 +300,9 @@ Project home page: https://github.com/BurntSushi/ripgrep -S, --smart-case : Search case insensitively if the pattern is all lowercase. Search case sensitively otherwise. This is overridden by either - --case-sensitive or --ignore-case. + --case-sensitive or --ignore-case. Note: This feature is smart enough + to treat simple classes like \\S as lowercase, but may not handle more + complex syntax like \\p{Ll} as expected. --sort-files : Sort results by file path. Note that this currently