n8n-io / n8n

Free and source-available fair-code licensed workflow automation tool. Easily automate tasks across different services.
https://n8n.io
Other
42.33k stars 5.48k forks source link

Ignore case in if node breaks array contains #9893

Open rserranocivitatis opened 4 days ago

rserranocivitatis commented 4 days ago

Bug Description

Enabling the ignore case option seems to be breaking the "array contains".

To Reproduce

  1. Create an "if" node

  2. Set value one to any JS array expression like {{ ["SAC-TEAM"] }} , and value two to SAC-TEAM.

  3. The condition at this time is true. image

  4. But, enable ignore option and the condition becomes false. image

Expected behavior

I would expect to get "true" independently on the "Ignore case" option. And in case the cases didn't match, the option should still make the condition true.

Operating System

Docker

n8n Version

1.47.0

Node.js Version

Docker

Database

PostgreSQL

Execution mode

main (default)

Joffcom commented 2 days ago

Hey @rserranocivitatis,

Thanks for the report, I was able to reproduce this and created NODE-1453 as the internal dev ticket to get this fixed.