Skip to content

Limit characters after tag name #200

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

Merged
merged 3 commits into from
Feb 9, 2020
Merged

Conversation

jaapio
Copy link
Member

@jaapio jaapio commented Feb 9, 2020

Previously we allowed all characters after a tag name which made
it a bit fuzzy how tags are handled. Psr-5 is more strict about
the characters that are allowed in tags and those that are part of
the body. A tag name can now be followed by (, and { all
other characters are forbidden. The first character of the body is
not restricted anymore.

fixes #165

Previously we allowed all characters after a tag name which made
it a bit fuzzy how tags are handled. Psr-5 is more strict about
the characters that are allowed in tags and those that are part of
the body. A tag name can now be followed by `(`, <space> and `{` all
other characters are forbidden. The first character of the body is
not restricted anymore.

fixes #165
@jaapio jaapio requested a review from mvriel February 9, 2020 07:58
Copy link
Member

@mvriel mvriel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like a bit more descriptive keys in the data provider to more clearly express the scenario that you are testing; functionally it looks good to me :)

@jaapio jaapio merged commit a8dc047 into master Feb 9, 2020
@jaapio jaapio deleted the feature/improved-tag-parsing branch February 9, 2020 09:20
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.

Exception in StandardTagFactory
2 participants