mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-25 18:50:26 +00:00
fix:injector: make injector compatible with Rhino (HtmlUnit)
This commit is contained in:
parent
952225f020
commit
77ba539f63
1 changed files with 1 additions and 1 deletions
|
|
@ -125,7 +125,7 @@ function angularServiceInject(name, fn, inject, eager) {
|
|||
* extracting all arguments which and assuming that they are the
|
||||
* injection names.
|
||||
*/
|
||||
var FN_ARGS = /^function\s*[^\(]*\(([^\)]*)\)/;
|
||||
var FN_ARGS = /^function\s*[^\(]*\(([^\)]*)\)/m;
|
||||
var FN_ARG_SPLIT = /,/;
|
||||
var FN_ARG = /^\s*(.+?)\s*$/;
|
||||
var STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg;
|
||||
|
|
|
|||
Loading…
Reference in a new issue