Skip to content
This repository has been archived by the owner on Sep 7, 2018. It is now read-only.

use __FILE as marker for file replacement to avoid issues with variables ending in _FILE #172

Merged
merged 1 commit into from
Jun 19, 2018

Conversation

DanCech
Copy link
Contributor

@DanCech DanCech commented Jun 19, 2018

Since environment variable names should only consist of uppercase letters, digits, and the '_' (underscore), this PR adjusts the file-replacement syntax to require 2 underscores like GF_<section>_<setting>__FILE (with double underscore) so that it isn't ambiguous when the setting ends with _FILE (single underscore).

Copy link
Contributor

@xlson xlson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants