xrutayisire / react-js-cron

A React cron editor built with antd
https://xrutayisire.github.io/react-js-cron/?path=/docs/reactjs-cron--demo
MIT License
238 stars 105 forks source link

Invalid expression expand #30

Closed engFelipeMonteiro closed 2 years ago

engFelipeMonteiro commented 2 years ago

Describe the bug The expand of this library is not getting a correct awnser.

To Reproduce Steps to reproduce the behavior: 1. On playground when you put " 2-10,19-23/2 " , this should be equal to [2,3,4,5,6,7,8,9,10,19,21] but it appers as " 2-23/2 ".

  1. The playground dont accept the following valid expression "* 2-6/2,19-23/2" ( every 2 hours off work hours)
xrutayisire commented 2 years ago

Hello,

Thanks for the issue!

I created an issue in cron-converter, the error come from the converter management.

xrutayisire commented 2 years ago

v2.1.1 is released with the fix! 🎉

Your use cases should work now 💯 You can reopen this issue if you still have a problem.

Have a good day!