isHermezAccountIndex function

bool isHermezAccountIndex(
  1. String? test
)

Checks if given string matches regex of a Hermez account index @param {String} test @returns {Boolean}

Implementation

bool isHermezAccountIndex(String? test) {
  if (test != null && accountIndexPattern.hasMatch(test)) {
    return true;
  }
  return false;
}