aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMisko Hevery2011-02-18 13:19:59 -0800
committerMisko Hevery2011-02-18 14:02:21 -0800
commitfd6e5e3f31f374de7be7c80acaa766a14cb753db (patch)
tree28b88246e0374daffd7fc38703f1b5851bc84ba6 /src
parent7d4aee31bb202e9b050fc15c56cfc33c46b9eaf5 (diff)
downloadangular.js-fd6e5e3f31f374de7be7c80acaa766a14cb753db.tar.bz2
replace smart-quotes with regular quotes
Diffstat (limited to 'src')
-rw-r--r--src/Injector.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Injector.js b/src/Injector.js
index a5a0b540..5ba2cbfc 100644
--- a/src/Injector.js
+++ b/src/Injector.js
@@ -92,7 +92,7 @@ function angularServiceInject(name, fn, inject, eager) {
* extracting all arguments which start with $ or end with _ as the
* injection names.
*/
-var FN_ARGS = /^function [^\(]*\(([^\)]*)\)/;
+var FN_ARGS = /^function\s*[^\(]*\(([^\)]*)\)/;
var FN_ARG_SPLIT = /,/;
var FN_ARG = /^\s*(((\$?).+?)(_?))\s*$/;
var STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg;