Skip to content

Commit

Permalink
Fixed regex
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed Oct 4, 2024
1 parent 2be7cff commit f3c0126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal/primitives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const types = ['int8', 'uint8', 'int16', 'uint16', 'int32', 'uint32', 'in

export const valids = [...types, ...types.map(t => capitalize(t)), 'char'] satisfies Valid[];

export const regex = /^(u?int)(8|16|32|64)|(float)(32|64)$/i;
export const regex = /^(u?int|float)(8|16|32|64)$/i;

export type Normalize<T extends Valid> = T extends 'char' ? 'uint8' : Uncapitalize<T>;

Expand Down

0 comments on commit f3c0126

Please sign in to comment.