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

Commit

Permalink
fix:injector: make injector compatible with Rhino (HtmlUnit)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdolk authored and IgorMinar committed Jul 6, 2011
1 parent 952225f commit 77ba539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Injector.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 77ba539

Please sign in to comment.