Bug 1684645 - Fix the regex for sphinx-copybutton.r=sylvestre DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D100596
This commit is contained in:
championshuttler
2021-01-02 15:39:07 +00:00
parent 40fa2c91e6
commit 76dd0f5ab5

View File

@@ -13,7 +13,8 @@ from recommonmark.transform import AutoStructify
OUR_DIR = os.path.dirname(__file__)
topsrcdir = os.path.normpath(os.path.join(OUR_DIR, ".."))
copybutton_prompt_text = ">>> |\\\\$ |\\[\\d*\\]: |\\.\\.\\.: "
# Escapes $, [, ] and 3 dots in copy button
copybutton_prompt_text = r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: "
copybutton_prompt_is_regexp = True
EXTRA_PATHS = (