Skip to content

Commit

Permalink
fix: stringifyRangeSet
Browse files Browse the repository at this point in the history
  • Loading branch information
bluelovers committed Aug 15, 2022
1 parent 1e294e0 commit b491131
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.

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

Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { buildRangeSet } from './buildRangeSet';
import { separatorDoubleVerticalBar } from '../const';

export function stringifyRangeSet(rangeSet: ReturnType<typeof buildRangeSet>)
{
return rangeSet.flat().join(' ')
return rangeSet
.map(a => a.join(' '))
.join(separatorDoubleVerticalBar)
}

0 comments on commit b491131

Please sign in to comment.