public UrlFilterRule(String ruleText){
  super(ruleText);
  String urlRuleText=ruleText;
  if (StringUtils.startsWith(urlRuleText,MASK_WHITE_LIST)) {
    urlRuleText=urlRuleText.substring(MASK_WHITE_LIST.length());
    whiteListRule=true;
  }
  int optionsIndex=StringUtils.lastIndexOf(urlRuleText,OPTIONS_DELIMITER);
  if (optionsIndex > -1) {
    urlRuleText=urlRuleText.substring(0,optionsIndex);
  }
  urlRuleText=toPunycode(urlRuleText);
  boolean regexRule=urlRuleText.startsWith(MASK_REGEX_RULE) && urlRuleText.endsWith(MASK_REGEX_RULE);
  if (!regexRule) {
    shortcut=findShortcut(urlRuleText);
  }
}

public UrlFilterRule ( String ruleText ) { super ( ruleText ) ; String urlRuleText = ruleText ; if ( StringUtils . startsWith ( urlRuleText , MASK_WHITE_LIST ) ) { urlRuleText = urlRuleText . substring ( MASK_WHITE_LIST . length ( ) ) ; whiteListRule = true ; } int optionsIndex = StringUtils . lastIndexOf ( urlRuleText , OPTIONS_DELIMITER ) ; if ( optionsIndex > - 1 ) { urlRuleText = urlRuleText . substring ( 0 , optionsIndex ) ; } urlRuleText = toPunycode ( urlRuleText ) ; boolean regexRule = urlRuleText . startsWith ( MASK_REGEX_RULE ) && urlRuleText . endsWith ( MASK_REGEX_RULE ) ; if ( ! regexRule ) { shortcut = findShortcut ( urlRuleText ) ; } }
creates url filter rule
