Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parseExpression() loses ? information #358

Open
vegemite4me opened this issue Nov 23, 2024 · 0 comments
Open

parseExpression() loses ? information #358

vegemite4me opened this issue Nov 23, 2024 · 0 comments

Comments

@vegemite4me
Copy link

Thank you for producing this very useful library. I think this is a bug, but I am happy to be corrected.

I have a cron expression with a question mark in it:
0 0 17 * * ?

No problems parsing it, but if I stringify it without making any changes, I expect to get the same cron. But instead the ? is converted to a * and it becomes:
0 0 17 * * *

const result = parseExpression("0 0 17 * * ?");
console.log(result.stringify(true));  // prints "0 0 17 * * *"

How can I parse such an expression, and stringify it later to get back the original specification?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant