4 Replies Latest reply on Jul 8, 2016 6:10 AM by DBarranca

    Poor support for Javascript String functions in ExtendScript?

    Heimdaal Level 1

      The differences between JS and JSX is really annoying when developing panels, as some things work for one language and not for the other.
      I just noticed that the endsWith() -string function doesn't work in JSX. I'm trying to check if a layer name ends with a special character, like this:

      alert("lolk_".endsWith("_"));
      

       

      This will halt script execution. Cmon! Do I really need to use a regex for super simple things like this? It's ridiculus!