benburkert / randexp

generate random data from a Regular Expression
MIT License
286 stars 43 forks source link

Incorrect generating #20

Open MProG opened 6 years ago

MProG commented 6 years ago

/(\w|\d){8}-(\w|\d){4}/ - will generate sumting like this 1d3f5g7h-w2e4 --- length 13 but actual result "48v1t3nH-XG33T60X0-J7WO2hel1-8hLq92so6-5"
/[a-z\d]{8}/ will generate words with 8 simbols(numbers and curs) but actual result [a-z2]]]]]]]]

tan-wei commented 4 years ago

Seems incorrect with [ and ].