Skip to content

Add exists conditional modifier to date, fix parser regex #666

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

Merged
merged 7 commits into from
Jan 16, 2025

Conversation

Stef-00012
Copy link
Contributor

@Stef-00012 Stef-00012 commented Jan 14, 2025

since i noticed that {file.deletesAt} can be null, I added ::exists modifier to dates too

also fixed parser regex, before this fix, here {file.createdAt::locale::it-IT,Europe/Rome}{file.id} it would match it-IT,Europe/Rome}{file.id as locale timezone

here {file.name::exists["yes"||"no"]}{file.originalName::exists["yes"||"no"]} it would match "yes"||"no"]}{file.originalName::exists["yes" as mod_check_true group

docs pr at diced/zipline-docs#79

@Stef-00012
Copy link
Contributor Author

not sure why it includes the commits of the previous merged pr tbh

before this fix, here `{file.createdAt::locale::it-IT,Europe/Rome}{file.id}` it would matcg `it-IT,Europe/Rome}{file.id` as locale timezone

here `{file.name::exists["yes"||"no"]}{file.originalName::exists["yes"||"no"]}` it would match `yes"||"no"]}{file.originalName::exists["yes"||"no` as `mod_check_true` group
@Stef-00012 Stef-00012 changed the title Add exists conditional modifier to date Add exists conditional modifier to date, fix parser regex Jan 16, 2025
@diced diced merged commit 7ea8207 into diced:v4 Jan 16, 2025
3 checks passed
@diced diced added the v4 v4 bugs label Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v4 v4 bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants