added whole system from ola4doc
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
'use strict';
|
||||
|
||||
var validFunction = require('../valid-function')
|
||||
|
||||
, re = new RegExp('^\\s*function[\\0-\'\\)-\\uffff]*' +
|
||||
'\\(([\\0-\\(\\*-\\uffff]*)\\)\\s*\\{([\\0-\\uffff]*)\\}\\s*$');
|
||||
|
||||
module.exports = function () {
|
||||
var data = String(validFunction(this)).match(re);
|
||||
return { args: data[1], body: data[2] };
|
||||
};
|
||||
Reference in New Issue
Block a user