Commit Graph

9 Commits

Author SHA1 Message Date
diced
e58c069ec3 fix: unnecessary escape 2025-02-02 17:47:11 -08:00
Stefano Del Prete
33522fcdc6 fix: conditional modifiers fix (#667)
* should be signed

* remove boolean modifiers that cna be replaced by istrue/isfalse

* added exists check on string, removed isfalse check on boolean since it the same as istrue but inverting the true/false strings

* add ::exists conditional modifier to date since {file.deletesAt} can be null

* Fix parser regex

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

* Forgot `\` before first `{` in the regex

* add conditional mods to originalName too, fix regex not matching when true/false string had "\n", fix "::exists" matching on string when they were "null"

---------

Co-authored-by: dicedtomato <35403473+diced@users.noreply.github.com>
2025-01-17 16:59:40 -08:00
Stefano Del Prete
7ea8207c30 feat: exists conditional modifier to date, fix parser regex (#666)
* should be signed

* remove boolean modifiers that cna be replaced by istrue/isfalse

* added exists check on string, removed isfalse check on boolean since it the same as istrue but inverting the true/false strings

* add ::exists conditional modifier to date since {file.deletesAt} can be null

* Fix parser regex

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

* Forgot `\` before first `{` in the regex
2025-01-16 11:49:27 -08:00
Stefano Del Prete
0464d0da18 feat: conditional modifiers for variables (#662)
* should be signed

* remove boolean modifiers that cna be replaced by istrue/isfalse

* added exists check on string, removed isfalse check on boolean since it the same as istrue but inverting the true/false strings
2025-01-13 11:38:29 -08:00
diced
fa39ac77d4 fix: non-view route password protected file 2025-01-03 15:55:54 -08:00
diced
12fcff1a14 fix: a bunch of random stuff 2024-12-20 00:07:33 -08:00
diced
129ba0cdea feat: edit urls 2024-11-12 22:18:11 -08:00
diced
927e5bd00a fix: i dont know (very unstable commit) 2024-05-22 21:18:55 -07:00
diced
3a3cf519e6 feat: metrics in variables 2024-02-11 12:16:23 -08:00