[go: up one dir, main page]

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

Handle tags with spaces in the tagger plugin #185

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

Conversation

abhaga
Copy link
@abhaga abhaga commented Jul 6, 2012

Currently the tagger plugin doesn't support the tags with spaces. The generated method names "walk_resources_tagged_with_" are generated with spaces in them. A quick fix for this is to generate methods with spaces replaced with underscores.

@vokimon
Copy link
vokimon commented Nov 11, 2012

I had that problem as well, with the added inconvenient of having '-' in some tags ('real-time'). I could add '-' to the list of characters to be substituted but, in general, anything that is not a letter, a number or an underline is a problem so i would use a wider substitution. I suggest using something like:

tag_identifier = re.sub(r"[^a-zA-Z0-9_]", r"_", tag)

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.

2 participants