mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 00:51:33 +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