Skip to content

Commit

Permalink
Fix cycle grouping
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanchuan committed Dec 16, 2023
1 parent cfbf705 commit 909cc43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/function.js
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ const Expose = add_alias({

cycle() {
return (...args) => {
args = args.map(n => '(' + n + ')');
args = args.map(n => '<' + n + '>');
let list = [];
let separator;
if (args.length == 1) {
Expand All @@ -672,7 +672,7 @@ const Expose = add_alias({
separator = ',';
list = parse_value_group(args.map(get_value).join(separator), { symbol: separator});
}
list = list.map(n => n.replace(/^\(|\)$/g,''));
list = list.map(n => n.replace(/^\<|>$/g,''));
let size = list.length - 1;
let result = [list.join(separator)];
// Just ignore the performance
Expand Down

0 comments on commit 909cc43

Please sign in to comment.