Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyverald authored Aug 7, 2024
1 parent 34765b7 commit 32aad6f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions data/moduleStaticProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ export const getStaticPropsModulePage = async (
*/

type Version = {
release: string[],
prerelease: string[],
original: string,
release: string[]
prerelease: string[]
original: string
}

const parseVersion = (v: string): Version => {
Expand Down Expand Up @@ -108,7 +108,7 @@ function composeCmps<T>(...cmps: Cmp<T>[]): Cmp<T> {

const compareIdentifiers: Cmp<string> = composeCmps(
comparing((id) => !/^\d+$/.test(id)), // pure numbers compare less than non-numbers
comparing((id) => /^\d+$/.test(id) ? parseInt(id) : 0),
comparing((id) => (/^\d+$/.test(id) ? parseInt(id) : 0)),
natural,
)

Expand Down

0 comments on commit 32aad6f

Please sign in to comment.