Skip to content

Improve regex pattern#28

Open
pblommendaal wants to merge 3 commits intodzylikecode:masterfrom
pblommendaal:improve-regex-pattern
Open

Improve regex pattern#28
pblommendaal wants to merge 3 commits intodzylikecode:masterfrom
pblommendaal:improve-regex-pattern

Conversation

@pblommendaal
Copy link

Description

This pull request improves the convertPatternToReg function within config.js to handle reStructuredText image paths more effectively. The updated regex captures the entire imagePath until the newline, making it more flexible for different path formats and line breaks. Additionally, a test file, test.rst, has been added to assist in debugging and validate that the regex correctly matches reStructuredText image patterns during runtime.

Changes

Improved regex in convertPatternToReg for full imagePath capture.
Added test.rst for debugging and testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant