]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/helpers/regexp.ts
Prevent caption listing of private videos
[github/Chocobozzz/PeerTube.git] / server / helpers / regexp.ts
index cfc2be4882523e7c5dbd20c56903801a059b0df6..257054cead9c076744a0ac18266c110d5c306024 100644 (file)
@@ -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) {