Skip to content

Commit 2372c33

Browse files
committed
allow negative numbers for DATALINE regex
1 parent ed6836e commit 2372c33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c/xdifile.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ _EXPORT(void) XDI_cleanup(XDIFile *xdifile, long err);
9999
/* #define FAMILYNAME "(?i)^[a-z_][a-z0-9_]+$" */
100100
/* #define KEYNAME "(?i)^[a-z0-9_]+$" */
101101

102-
#define DATALINE "^([ \\t]*[0-9\\.])"
102+
#define DATALINE "^([ \\t]*[-+]*?[0-9\\.])"
103103

104104
/* Notes:
105105
1. The absorption edge must be one of those listed in ValidEdges below

0 commit comments

Comments
 (0)