X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fhelpers%2Fregexp.ts;h=257054cead9c076744a0ac18266c110d5c306024;hb=91a4893063402d7beabb3104f9b989b8f88b6038;hp=cfc2be4882523e7c5dbd20c56903801a059b0df6;hpb=c2777c1dfe688c8fab1ef2fed50e360100fa9198;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/helpers/regexp.ts b/server/helpers/regexp.ts index cfc2be488..257054cea 100644 --- a/server/helpers/regexp.ts +++ b/server/helpers/regexp.ts @@ -4,7 +4,6 @@ function regexpCapture (str: string, regex: RegExp, maxIterations = 100) { let m: RegExpExecArray let i = 0 - // tslint:disable:no-conditional-assignment while ((m = regex.exec(str)) !== null && i < maxIterations) { // This is necessary to avoid infinite loops with zero-width matches if (m.index === regex.lastIndex) {