BRU Filter Condition assumes folders have extensions

Post any Bulk Rename Utility support requirements here. Open to all registered users.

BRU Filter Condition assumes folders have extensions

Postby damien18 » Sat Sep 19, 2026 11:04 pm

In the Filters section, a Javascript Condition such as
Code: Select all
name.indexOf('text') != -1
fails to find folders whose names contain "text" if the folder name also contains a period. This also occurs when using
Code: Select all
origName
.

Seemingly this is due to the fact that
Code: Select all
name
and
Code: Select all
origName
do not include the extension, and BRU is erroneously assuming that folders have extensions.

A workaround is to do something like the following instead:
Code: Select all
(name + '.' + ext).indexOf('text') != -1


However, that is rather clumsy and not intuitive. Can BRU be modified so that
Code: Select all
name
and
Code: Select all
origName
include the full name for folders?
damien18
 
Posts: 2
Joined: Thu Mar 20, 2025 8:02 pm

Re: BRU Filter Condition assumes folders have extensions

Postby damien18 » Sat Sep 19, 2026 11:07 pm

I apologize for poor formatting. I had thought that [code] worked inline, and the fact that it did not was not apparent in the Preview. I also see no way to edit my post.
damien18
 
Posts: 2
Joined: Thu Mar 20, 2025 8:02 pm


Return to BRU Support