diff --git a/src/core/Player.ts b/src/core/Player.ts index 739fdb85..6016d614 100644 --- a/src/core/Player.ts +++ b/src/core/Player.ts @@ -221,7 +221,7 @@ export default class Player { } static extractNSigSourceCode(data: string): string | undefined { - const match = data.match(/b=(?:a\.split\(|String\.prototype\.split\.call\(a,)""\).*?\}return (?:b\.join\(|Array\.prototype\.join\.call\(b,)""\)\}/s); + const match = data.match(/b=(?:a\.split\(|String\.prototype\.split\.call\(a,)\n?(?:""|\("",""\))\).*?\}return (?:b\.join\(|Array\.prototype\.join\.call\(b,)\n?(?:""|\("",""\))\)\}/s); // Don't throw an error here. if (!match) { @@ -239,4 +239,4 @@ export default class Player { static get LIBRARY_VERSION(): number { return 11; } -} \ No newline at end of file +}