nameMatches method

TagQuery nameMatches(
  1. RegExp pattern
)

Require that matched nodes have a name matching pattern.

Implementation

TagQuery nameMatches(RegExp pattern) => where((n) => pattern.hasMatch(n.name));