|
|
|
|
|
by koito17
253 days ago
|
|
The README gets straight to the point and I really like that. Additionally, the .env file parser is quite clean. https://github.com/ashtonjamesd/lavandula/blob/main/src/dote... However, it doesn't seem that the parser supports comments. I guess a "good first issue" for anyone interested in contributing would be extending the `skipWhitespace` function to detect `#` tokens and skip the rest of the line when present. Would also need to handle edge cases like env vars having values containing `#` tokens inside (but these will be quoted, so it's probably not too tricky to handle.) |
|
I didn't find it clean; it's so over-engineered that you won't easily be able to spot bugs in it.
What you want is (assuming you have a string-trimming function):
> I guess a "good first issue" for anyone interested in contributing would be extending the `skipWhitespace` function to detect `#` tokens and skip the rest of the line when present.Or do it before processing:
The way it's done in the linked code raises a ton of red flags.