Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 77ba539

Browse files
mdolkIgorMinar
authored andcommitted
fix:injector: make injector compatible with Rhino (HtmlUnit)
1 parent 952225f commit 77ba539

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Injector.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function angularServiceInject(name, fn, inject, eager) {
125125
* extracting all arguments which and assuming that they are the
126126
* injection names.
127127
*/
128-
var FN_ARGS = /^function\s*[^\(]*\(([^\)]*)\)/;
128+
var FN_ARGS = /^function\s*[^\(]*\(([^\)]*)\)/m;
129129
var FN_ARG_SPLIT = /,/;
130130
var FN_ARG = /^\s*(.+?)\s*$/;
131131
var STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg;

0 commit comments

Comments
 (0)