name.includes doesnt exist?

Javascript renaming examples. Javascript renaming is supported in version 3 or newer.

name.includes doesnt exist?

Postby nikolay1243 » Wed May 16, 2018 6:04 pm

Hi, I basically want to find all the files in a bunch of folders which end in odd numbers. That parts fine.

However I want the even ones from files containing the word "walk" but name.includes("walk") in the filters/condition space doesnt work.

Can someone help me?
nikolay1243
 
Posts: 2
Joined: Wed May 16, 2018 6:01 pm

Re: name.includes doesnt exist?

Postby Admin » Thu May 17, 2018 1:24 am

Hi, looks like that function is not supported, sorry use

name.indexOf('walk') !== -1

instead

thanks
Admin
Site Admin
 
Posts: 2343
Joined: Tue Mar 08, 2005 8:39 pm

Re: name.includes doesnt exist?

Postby nikolay1243 » Thu May 17, 2018 10:29 am

Awesome, thanks :)
nikolay1243
 
Posts: 2
Joined: Wed May 16, 2018 6:01 pm


Return to Javascript Renaming