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

Change user mentions in a post to their URL #23

Closed
joshsmith opened this issue Dec 1, 2015 · 1 comment
Closed

Change user mentions in a post to their URL #23

joshsmith opened this issue Dec 1, 2015 · 1 comment

Comments

@joshsmith
Copy link
Contributor

We'll want to borrow heavily from this: https://github.com/twitter/twitter-text/blob/master/js/twitter-text.js#L643

Closed by #93.

@joshsmith
Copy link
Contributor Author

Another approach, though, while I'm thinking of it, is to sort backwards by index. That is, you can do string replacement backwards because the first indices will have unchanged character placement.

Here's an example of this in action: http://stackoverflow.com/a/30388998/373496

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

1 participant