diff --git a/src/Injector.js b/src/Injector.js index 9e1464e93383..7bddb2b9629b 100644 --- a/src/Injector.js +++ b/src/Injector.js @@ -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;