Skip to content

Commit

Permalink
Split on any whitespace
Browse files Browse the repository at this point in the history
So long lists can be broken up into multiple lines in config
  • Loading branch information
mwerezak authored Oct 19, 2023
1 parent a4b3782 commit cba9934
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alembic/script/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
_legacy_rev = re.compile(r"([a-f0-9]+)\.py$")
_slug_re = re.compile(r"\w+")
_default_file_template = "%(rev)s_%(slug)s"
_split_on_space_comma = re.compile(r", *|(?: +)")
_split_on_space_comma = re.compile(r",\s*|(?:\s+)")

_split_on_space_comma_colon = re.compile(r", *|(?: +)|\:")
_split_on_space_comma_colon = re.compile(r",\s*|(?:\s+)|\:")


class ScriptDirectory:
Expand Down

0 comments on commit cba9934

Please sign in to comment.