The `angular.isRegexp` function seems to belong to a third party module: https://github.com/pbakondy/angular-typecheck It should be deprecated and moved to another project or at least mentioned in the docs.