Larry Davis

Results 217 comments of Larry Davis

Hey @afoeder, I agree `declare.processNameByPath()` should handle this case. In the mean time, you can remove the `../` from the path in your `replace()` and things should behave as expected.

I would be -1 for replacing the two argument approach completely, but it might be acceptable to pass a single object as an alternative. Perhaps just `{ search: 'x', replace:...

Hi @demisx, this is a regex question, try posting it on Stack Overflow and you're sure to get some answers!

If you do find you're unable to get it to work after trying other strategies, please re-open the issue.

@demisx Interesting, I will investigate it.

@demisx that matches the whitespace itself, but it doesn't match the newline. Did you try `/^\s*\n/` or something like that?

@demisx it happens to the best of us, I'm glad you solved it! In the mean time, I am adding a test for this because it IS possible there could...

@demisx so apparently `/^\s*\n/gm` is the right way to do it, or `/^\s*[\r\n]/gm` to also catch legacy Mac line endings. You need the `m` flag to match on a per-line...

@demisx I pushed some tests to the `blanklines` branch, maybe you can have a look and see why the buffered test is failing? That's better than a hundred stars!

@mrweiner super low without a PR, I don't have incentive or time to add this feature myself.