Split to array no longer working properly

I'm wondering if something in today's update broke this split to array function.

I created a macro here which should be splitting on the word cow, but as you can see if you run it and check the variables that it's splitting in places that don't contain "cow"

Just run it and check the xml entries field. There should be 4 but I'm getting 6.

This is part of some other function, I just made this macro just for testing.

Thank you for all the amazing efforts to keep macrodroid awesome!
 

Attachments

  • Testing_split_to_array.macro
    6.2 KB · Views: 6

Endercraft

Moderator (& bug finder :D)
I'm wondering if something in today's update broke this split to array function.

I created a macro here which should be splitting on the word cow, but as you can see if you run it and check the variables that it's splitting in places that don't contain "cow"

Just run it and check the xml entries field. There should be 4 but I'm getting 6.

This is part of some other function, I just made this macro just for testing.

Thank you for all the amazing efforts to keep macrodroid awesome!
So that's why my macro broke !
 
If it helps all, I think array may be splitting on any instance of anything contained in the 'split' criteria.

For example, in this case, splitting on any C or O or W, not just the precise string of "cow." I have not tested this theory, but I'm guessing once the devs see this it will be a clear fix if it's related to the recent update.
 

Endercraft

Moderator (& bug finder :D)
If it helps all, I think array may be splitting on any instance of anything contained in the 'split' criteria.

For example, in this case, splitting on any C or O or W, not just the precise string of "cow." I have not tested this theory, but I'm guessing once the devs see this it will be a clear fix if it's related to the recent update.
Yes, for me it was happening with the letter c.
 

RSF

Well-known member
As a temporary workaround, you could
  1. Do a Text Manipulation action, Replace All action to change the multi-character delimiter (cow, in the example above) to a single character that doesn't appear in the text -- something like ¶
  2. Then change the Text Manipulation/Split to Array action to use ¶ as the splitter
 
Stellar work around! Thanks for the suggestion...
I updated the demo macro to find all cows and replace with cow~
Then break on ~
AND ITS WORKING

I included the macro here for anyone interested.
 

Attachments

  • split_to_array_updated.macro
    7 KB · Views: 8
Top