Skip to content

Commit

Permalink
Fix overly permissive regex
Browse files Browse the repository at this point in the history
  • Loading branch information
axelboc committed Oct 24, 2023
1 parent 7c132ca commit 29bee50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app/src/providers/h5grove/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function convertH5GroveDtype(dtype: H5GroveDtype): DType {
}

function convertDtypeString(dtype: string): DType {
const regexp = /([<>=|])?([A-z])(\d*)/u;
const regexp = /([<>=|])?([A-Za-z])(\d*)/u;
const matches = regexp.exec(dtype);

if (matches === null) {
Expand Down

0 comments on commit 29bee50

Please sign in to comment.