Skip to content

Regex improvements - #17

Open
darkdragon-001 wants to merge 3 commits into
jonbeebe:masterfrom
darkdragon-001:fixes
Open

Regex improvements#17
darkdragon-001 wants to merge 3 commits into
jonbeebe:masterfrom
darkdragon-001:fixes

Conversation

@darkdragon-001

Copy link
Copy Markdown
  • Remove global multiline flag to ensure matching the whole string
  • Use local multiline flag to restrict delimiter
  • Don't match on TOML delimiter (+++) as it is currently only interpreted as YAML

as we actually want to match the beginning and end of the whole string instead of any line.
See GitLab documentation about common definitions
(https://docs.gitlab.com/ee/user/markdown.html#front-matter):
--- YAML
+++ TOML
;;; JSON
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