mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-21 09:09:01 +00:00
Replace quotes
This commit is contained in:
parent
1f329174ce
commit
7d08293c16
1 changed files with 1 additions and 1 deletions
|
|
@ -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] = {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue