We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Decoding then encoding (without further transformation) a file like this:
ActiveIndex = '0' MaximizedFlag = '1911' ProductVersion = '14.0.25793.400' Version = '1' WindowCount = '1'
Turns it into this:
ActiveIndex=0 MaximizedFlag=1911 ProductVersion=14.0.25793.400 Version=1 WindowCount=1
It basically removed the single quotes around the values, thereby causing a compatibility issue with the software that is supposed to open this file.
Single quotes are not removed from values
import fs from "fs"; import ini from "ini"; const input = `ActiveIndex = '0' MaximizedFlag = '1911' ProductVersion = '14.0.25793.400' Version = '1' WindowCount = '1'` const data = ini.parse(input); // prints the values without quotes console.log(ini.stringify(data));
The text was updated successfully, but these errors were encountered:
bug
Sorry, something went wrong.
fixed
import fs from "fs"; import ini from "ini";
const input = ActiveIndex = '0' MaximizedFlag = '1911' ProductVersion = '14.0.25793.400' Version = '1' WindowCount = '1'
const data = ini.parse(input);
// prints the values without quotes console.log(ini.stringify(data));
No branches or pull requests
Is there an existing issue for this?
Current Behavior
Decoding then encoding (without further transformation) a file like this:
Turns it into this:
It basically removed the single quotes around the values, thereby causing a compatibility issue with the software that is supposed to open this file.
Expected Behavior
Single quotes are not removed from values
Steps To Reproduce
Environment
The text was updated successfully, but these errors were encountered: