original_string: private function tag_get_name(string $text){
      if (
        ($this->mode === 'js') ||
        ($this->mode === 'vue')
      ){
        //preg_match('/\w+/', $text, $name, PREG_OFFSET_CAPTURE);
        preg_match('/[[:graph:]]+/', $text, $name, PREG_OFFSET_CAPTURE);
      }
      else if ( $this->mode === 'php' ){
        preg_match('/\$[a-z]+/', $text, $name, PREG_OFFSET_CAPTURE);
      }
      return $name;
    }
code: private function tag_get_name(string $text){
      if (
        ($this->mode === 'js') ||
        ($this->mode === 'vue')
      ){
        //preg_match('/\w+/', $text, $name, PREG_OFFSET_CAPTURE);
        preg_match('/[[:graph:]]+/', $text, $name, PREG_OFFSET_CAPTURE);
      }
      else if ( $this->mode === 'php' ){
        preg_match('/\$[a-z]+/', $text, $name, PREG_OFFSET_CAPTURE);
      }
      return $name;
    }
code_tokens: private function tag_get_name ( string $ text ) { if ( ( $ this -> mode === 'js' ) || ( $ this -> mode === 'vue' ) ) { //preg_match('/\w+/', $text, $name, PREG_OFFSET_CAPTURE); preg_match ( '/[[:graph:]]+/' , $ text , $ name , PREG_OFFSET_CAPTURE ) ; } else if ( $ this -> mode === 'php' ) { preg_match ( '/\$[a-z]+/' , $ text , $ name , PREG_OFFSET_CAPTURE ) ; } return $ name ; }
docstring: Gets tag 'name'
  
  @param string $text The tag text
  @return array
docstring_tokens: Gets tag name