Sha256: 618fe2f92083bf2b750d2090b07c3cf556484d0ab089c13d6e0ca0c79fe3483a
Contents?: true
Size: 317 Bytes
Versions: 29
Compression:
Stored size: 317 Bytes
Contents
'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] }; };
Version data entries
29 entries across 19 versions & 7 rubygems