Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
congminh1254 committed Jul 29, 2024
1 parent b9ea367 commit 7febb24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function parseMetadataString(input) {
*/
function parseStringToObject(str) {
const obj = {};
const regex = /([\w-]+)=((?:"[^"]*")|[^,]*)/g; // Regular expression to match key=value pairs, including keys with dashes and quoted values
const regex = /([\w-]+)=((?:"[^"]*")|[^,]*)/gu; // Regular expression to match key=value pairs, including keys with dashes and quoted values
let match;

while ((match = regex.exec(str)) !== null) {
Expand Down

0 comments on commit 7febb24

Please sign in to comment.