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

Regular Expressions in Replace variable stopped working #964

Closed
greystate opened this issue Jul 6, 2016 · 4 comments
Closed

Regular Expressions in Replace variable stopped working #964

greystate opened this issue Jul 6, 2016 · 4 comments
Labels
Milestone

Comments

@greystate
Copy link

@greystate greystate commented Jul 6, 2016

I'm using Avocode 2.8.4 on OS X 10.11.5 and I have an issue with "replace" variables:

I have one that looks like this:

avocode-replace

So input is: font-size: (\d+)px; and the replacement is: .font-size($1);, e.g. to convert font-size: 30px; into .font-size(30); (I'm using LESS, so I have a mixin called .font-size() to generate th font-size rules).

This has stopped working - replacements with exact matches and no RegEx rules seem to work fine.

@petrbrzek
Copy link
Member

@petrbrzek petrbrzek commented Jul 6, 2016

@greystate Thanks for the report. I can reproduce it so it should be fixed in next release.

@petrbrzek petrbrzek added this to the 2.9.0 milestone Jul 6, 2016
@petrbrzek
Copy link
Member

@petrbrzek petrbrzek commented Aug 5, 2016

Fixed in 2.9.0.

@petrbrzek petrbrzek closed this Aug 5, 2016
@greystate
Copy link
Author

@greystate greystate commented Nov 25, 2016

Beta 2.12.0-community-beta.1 has resurfaced this issue 😿

(I can open a new duplicate issue, if you want @petrbrzek ?)

@petrbrzek
Copy link
Member

@petrbrzek petrbrzek commented Nov 25, 2016

@greystate thanks for noticing us. It will be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.