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

Overlapping value replacement #365

Merged
merged 2 commits into from
Nov 13, 2017
Merged

Overlapping value replacement #365

merged 2 commits into from
Nov 13, 2017

Conversation

tivac
Copy link
Owner

@tivac tivac commented Nov 12, 2017

Fixes #363 by sorting values by length so that longer replacements match first.

A little hacky-feeling, but seems ok after thinking about it for a bit.

This commit also solves the recurring travis failures I've been seeing thanks to a tip from @darthmaim in gitter.

So that values with the same prefixes don't stomp over each other. This feels a bit hacky but works for now.

Fixes #363
- Directly write files instead of copying
- Use travis in VM mode instead of container
@tivac tivac self-assigned this Nov 12, 2017
@tivac tivac added the bugfix label Nov 12, 2017
@tivac tivac merged commit 1f6fdb5 into master Nov 13, 2017
@tivac tivac deleted the overlapping-value-replacement branch November 13, 2017 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants