angular/angular.js — pull request #2729 by bripkens (2013-05-21 17:44:33+00:00)
Title: feat(angular.isRegExp): check object type for regular expressions

In order to fix #2685, we need to differentiate between regular
expression objects and other types. Angular could expose a public
function 'angular.isRegExp' through which this could be done.

This serves as a preparation for a follow-up pull request for a change to `angular.equals` (which will fix #2685).