Skip to content

Commit

Permalink
[update-dist-bot] auto-format and update dist
Browse files Browse the repository at this point in the history
  • Loading branch information
update-dist-bot committed Feb 15, 2024
1 parent e314ed0 commit 94c160f
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 23 deletions.
78 changes: 58 additions & 20 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ function expandPrefixSuffix(prefix, suffix, tag) {
// suffix could be a single suffix or a new line separated list of suffixes.
let prefixes = [...new Set(prefix.split(/\s|,/).filter(Boolean))];
if (prefixes.length == 0) {
// the permutation logic below requires at least one element
prefixes.push("");
// the permutation logic below requires at least one element
prefixes.push("");
}
let suffixes = [...new Set(suffix.split(/\n/))];
return prefixes.flatMap((p) => suffixes.map((s) => `${p}${tag}${s}`));
Expand Down

0 comments on commit 94c160f

Please sign in to comment.