Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add data- attributes to GOOD_STRINGS #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nimasmi
Copy link

@nimasmi nimasmi commented Sep 25, 2020

Boolean data attributes (e.g. data-foo) should not be translated,
whereas those which take values (data-title="foo") should be.

Boolean data attributes (e.g. data-foo) should not be translated,
whereas those which take values (data-title="foo") should be.
@amandasaurus
Copy link
Owner

amandasaurus commented Sep 27, 2020 via email

@nimasmi
Copy link
Author

nimasmi commented Sep 28, 2020

That's okay. The diff here isn't really anything Django-specific. It adds a regular expression to include data attributes like data-foo among other Booleans. I'd say that assessing this diff requires more understanding of HTML and regular expressions than Django.

Demo: https://regexr.com/5ctp0

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.

3 participants