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

Allow uppercase chars in username #33

Merged
merged 3 commits into from
Jun 8, 2016

Conversation

takezoe
Copy link
Contributor

@takezoe takezoe commented Jun 7, 2016

Update of #26

@@ -31,7 +31,7 @@ def mentionify(doc)
def filter_with_mention(src)
filters[src] ||= HTML::Pipeline.new([
HTML::Pipeline::MentionFilter
], { :base_url => src })
], { :base_url => src , :username_pattern => /#{HTML::Pipeline::MentionFilter::UsernamePattern.source}/i })
Copy link
Member

Choose a reason for hiding this comment

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

Let's make this a method as well, if you don't mind! Something like mention_username_pattern. Also, is there a way to do this without interpolation? Would love to be able to use the IGNORECASE flag instead of relying on this interpolation.

@benbalter
Copy link
Contributor

Looks good to me. Thanks @takezoe!

@benbalter
Copy link
Contributor

@jekyllbot: merge

@jekyllbot jekyllbot merged commit 52ad9b6 into jekyll:master Jun 8, 2016
jekyllbot added a commit that referenced this pull request Jun 8, 2016
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.

4 participants