eslint-plugin-angular
Version:
ESLint rules for AngularJS projects
15 lines (8 loc) • 561 B
Markdown
<!-- WARNING: Generated documentation. Edit docs and examples in the rule and examples file ('rules/typecheck-regexp.js', 'examples/typecheck-regexp.js'). -->
# typecheck-regexp - use `angular.isRegexp` instead of other comparisons
DEPRECATED! You should use the angular.isRegexp method instead of the default JavaScript implementation (toString.call(/^A/) === "[object RegExp]").
## Version
This rule was introduced in eslint-plugin-angular 0.1.0
## Links
* [Rule source](../rules/typecheck-regexp.js)
* [Example source](../examples/typecheck-regexp.js)