detect static method

bool detect(
  1. String html
)

return true if contain P.A.C.K.E.R code

Implementation

static bool detect(String html) {
  var reg = RegExp(
    r"eval[ ]*\([ ]*function[ ]*\([ ]*p[ ]*,[ ]*a[ ]*,[ ]*c["
    r" ]*,[ ]*k[ ]*,[ ]*e[ ]*,[ ]*",
  );
  return reg.hasMatch(html);
}