mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-14 20:03:29 +00:00
sed: Perform case insensitive substitutions with "/i"
This commit is contained in:
parent
0dc65cd835
commit
96d3d3b0fe
|
@ -90,6 +90,8 @@ static ErrorOr<SubstitutionCommand> parse_command(StringView command)
|
|||
} else if (flag == "g"sv) {
|
||||
// Allow multiple matches per line by un-setting the SingleMatch flag
|
||||
options &= ~PosixFlags::SingleMatch;
|
||||
} else if (flag == "i"sv || flag == "I"sv) {
|
||||
options |= PosixFlags::Insensitive;
|
||||
} else {
|
||||
warnln("sed: Unsupported flag: {}", flag);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue