Skip to content

Allow dashes in tag attribute names - #78

Merged
malcommac merged 1 commit into
malcommac:developfrom
wberger:patch-1
Aug 24, 2019
Merged

malcommac merged 1 commit into
malcommac:developfrom
wberger:patch-1

Conversation

@wberger

@wberger wberger commented Jun 14, 2019 •

Copy link
Copy Markdown
Contributor

Example:

<a href="https://www.google.com" my-custom-data="someinterestinginformation">

The current regex pattern would parse the name of the second attribute as "data". The new regex also allows for dashes in the name and would extract the full attribute name "my-custom-data".

Example:
<a href="https://www.google.com" my-custom-data="someinterestinginformation">

The current regex pattern would parse the name of the second parameter as "data". The new regex also allows for dashes in the name and would extract the full parameter name "my-custom-data".
@malcommac
malcommac changed the base branch from master to develop August 24, 2019 06:52
@malcommac
malcommac self-requested a review August 24, 2019 06:52
@malcommac malcommac self-assigned this Aug 24, 2019
@malcommac malcommac added this to the 3.0.2 milestone Aug 24, 2019
@malcommac

Copy link
Copy Markdown
Owner

Thank you, nice fix! 👍

@malcommac
malcommac merged commit 72aa309 into malcommac:develop Aug 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants