mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-21 17:18:52 +00:00
Add global and replace
This commit is contained in:
parent
cd8d38b371
commit
c8caec573a
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) {
|
||||
const value = match[2].replace(/("|')/, "");
|
||||
const value = match[2].replace(/("|')/gi, "");
|
||||
data[section][match[1].trim().toLowerCase()] = value;
|
||||
} else if ((match = line.match(SECTION_REGEX))) {
|
||||
section = match[1].trim().toLowerCase();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue