Skip to content

Commit

Permalink
Fix re.split DeprecationWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesjer committed Jun 18, 2024
1 parent fd07ae2 commit a7641e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jupytext/cell_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def parse_rmd_options(line):

def rmd_options_to_metadata(options, use_runtools=False):
"""Parse rmd options and return a metadata dictionary"""
options = re.split(r"\s|,", options, 1)
options = re.split(r"\s|,", options, maxsplit=1)
# Special case Wolfram Language, which sadly has a space in the language
# name.
if options[0:2] == ["wolfram", "language"]:
Expand Down

0 comments on commit a7641e4

Please sign in to comment.