mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-24 02:27:37 +00:00
Ensure method names never have spaces
This commit is contained in:
parent
36762dcbab
commit
1c917e9865
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ function parseFile(filePath) {
|
|||
if (methodMatch) {
|
||||
const result = methodMatch[1] == null ? "" : methodMatch[1].trim();
|
||||
const className = methodMatch[2].toLowerCase();
|
||||
const name = methodMatch[3];
|
||||
const name = methodMatch[3].trim();
|
||||
const rawArgs = methodMatch[4].split(/\s*,\s*/);
|
||||
const parameters = rawArgs.filter(Boolean).map(rawArg => {
|
||||
const argMatch = /^\s*(.*\s+)?(.*)\s*/.exec(rawArg);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue