Fix:Unescaped characters in description causing issues with m4b merging

This commit is contained in:
Conor Meyers 2022-10-18 04:25:18 +01:00
parent 6b8d71c0b0
commit e41a90463b
3 changed files with 68 additions and 1 deletions

View file

@ -0,0 +1,5 @@
function escapeString(string) {
return string.replace(/[.*"+?^${}()|[\]\\]/g, '\\$&');
}
module.exports.escapeString = escapeString