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

same mention name multiple times not working properly #1

Open
vjey23 opened this issue Jan 31, 2017 · 3 comments
Open

same mention name multiple times not working properly #1

vjey23 opened this issue Jan 31, 2017 · 3 comments

Comments

@vjey23
Copy link

vjey23 commented Jan 31, 2017

@omm test string @omm results in @omm@omm test string @omm after expand

"mention": func(b string) string {
				// Take substring from index 4 to length of string.
				return fmt.Sprintf(`<a href="/test/%[1]s">%[1]s</a>`, b)
			},
@huumn
Copy link

huumn commented Mar 29, 2018

I fixed this bug here https://github.com/huumn/anno ... it required a modified bytes.Fields to keep track of indices ... I couldn't think of a better way to fix the issue given the time I had.

@matryer
Copy link
Owner

matryer commented Apr 16, 2018

@huumn Can you send a PR in so we can all have that fix please?

@k1ng440
Copy link

k1ng440 commented May 6, 2018

@matryer please check the PR

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

No branches or pull requests

4 participants