]> git.r.bdr.sh - rbdr/dotfiles/blob
67afeae82def7e37788b095f446a9a192fe19612
[rbdr/dotfiles] /
1 'use strict';
2
3 var validFunction = require('../valid-function')
4
5 , re = new RegExp('^\\s*function[\\0-\'\\)-\\uffff]*' +
6 '\\(([\\0-\\(\\*-\\uffff]*)\\)\\s*\\{([\\0-\\uffff]*)\\}\\s*$');
7
8 module.exports = function () {
9 var data = String(validFunction(this)).match(re);
10 return { args: data[1], body: data[2] };
11 };