Skip to content

Commit

Permalink
Merge pull request #87 from yui-knk/refactor_extract_param_name
Browse files Browse the repository at this point in the history
Refactor #extract_param_name
  • Loading branch information
yui-knk authored Aug 21, 2023
2 parents 97427e4 + 0060a86 commit a201d21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lrama/output.rb
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def user_args
end

def extract_param_name(param)
/\A(\W*)([a-zA-Z0-9_]+)\z/.match(param.split.last)[2]
param[/\b([a-zA-Z0-9_]+)(?=\s*\z)/]
end

def parse_param_name
Expand Down

0 comments on commit a201d21

Please sign in to comment.