Replace quotes

This commit is contained in:
Ricky Miller 2018-02-12 09:19:12 -06:00 committed by Jordan Eldredge
parent 1f329174ce
commit 7d08293c16

View file

@ -78,7 +78,7 @@ export const parseIni = text => {
let section, match;
return text.split(/[\r\n]+/g).reduce((data, line) => {
if ((match = line.match(PROPERTY_REGEX)) && section != null) {
data[section][match[1].trim().toLowerCase()] = match[2];
data[section][match[1].trim().toLowerCase()] = match[2].replace(/("|')/, '');
} else if ((match = line.match(SECTION_REGEX))) {
section = match[1].trim().toLowerCase();
data[section] = {};