Skip to content

Commit 31b3eb3

Browse files
committed
change Regex.brackets() param default value
1 parent f05947c commit 31b3eb3

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
* Renamed the internal `_COMPILED` regex pattern dictionaries to `_PATTERNS` for better clarity.
2929
* Removed the import of the `ProgressBar` class from the `__init__.py` file, since it's not a standard class that should be imported directly.
3030
* Renamed the constant `CLR` to `CLI_COLORS` and the constant `HELP` to `CLI_HELP` in the `cli.help` module.
31+
* Changed the default value of the `strip_spaces` param in `Regex.brackets()` from `True` to `False`, since this is more intuitive behavior.
3132

3233

3334
<span id="v1-9-1" />

src/xulbux/regex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def brackets(
2727
bracket1: str = "(",
2828
bracket2: str = ")",
2929
is_group: bool = False,
30-
strip_spaces: bool = True,
30+
strip_spaces: bool = False,
3131
ignore_in_strings: bool = True,
3232
) -> str:
3333
"""Matches everything inside pairs of brackets, including other nested brackets.\n

0 commit comments

Comments
 (0)