If you used the code I provided then that's not true... It will work if the
word "apple" is anywhere in the file's name.
However, it is case-sensitive, so if the file is called Apple_1234.pdf it
will not work.
To make it case insensitive, change the code to:
/apple/i.test(this.documentFileName)