Skip to content

Commit f05915b

Browse files
Tolerate e and -
1 parent d055151 commit f05915b

File tree

1 file changed

+1
-1
lines changed
  • packages/myst-roles/src

1 file changed

+1
-1
lines changed

packages/myst-roles/src/si.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const siRole: RoleSpec = {
99
},
1010
run(data: RoleData): GenericNode[] {
1111
const value = data.body as string;
12-
const match = value.match(/([0-9.,]+)\s?<([\\a-zA-Z\s]+)>/);
12+
const match = value.match(/([0-9.,e-]+)\s?<([\\a-zA-Z\s]+)>/);
1313
if (!match) {
1414
return [{ type: 'si', error: true, value }];
1515
}

0 commit comments

Comments
 (0)