mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:14:58 +00:00
sed: Perform case insensitive substitutions with "/i"
This commit is contained in:
parent
0dc65cd835
commit
96d3d3b0fe
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue