Skip to content

Commit

Permalink
Fix re.split DeprecationWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesjer authored and mwouts committed Jun 30, 2024
1 parent f0b5eaa commit 89c450e
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 89c450e

Please sign in to comment.