Skip to content

Conversation

@pzac
Copy link

@pzac pzac commented Feb 28, 2017

Hi, the hash conversion wasn't working for me on selections where the first character was a colon - something fairly common when the hash is the last argument on a method call:

foobar(123, :foo => :bar)

If the selection was limited to :foo => :bar then no substitution would be made.

I've made the initial ([^\:]) clause optional - is there some case where this could have unwanted consequences? I've been trying on a medium-sized Rails app and the conversion didn't seem to create bad artifacts

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.

1 participant