alykoshin/wrtc-ice-cand-parse

View on GitHub

Showing 1 of 1 total issue

Function parse has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function parse(candidateString) {
  // token                  =  1*(alphanum / "-" / "." / "!" / "%" / "*"
  //                              / "_" / "+" / "`" / "'" / "~" )
  var token_re              = '[0-9a-zA-Z\\-\\.!\\%\\*_\\+\\`\\\'\\~]+';

Severity: Major
Found in index.js - About 2 hrs to fix
    Severity
    Category
    Status
    Source
    Language