5 Replies Latest reply on Jun 16, 2017 1:06 AM by sargums46564804

    Can javascript detect commas in path folder?

    sargums46564804 Level 1

      Hi,

       

      How can we make it so javascript detects whether user's path folder contains commas in it?  My program does not save to the path folder when the user has included commas in the folder name so I want to prevent this by generating an error when there are commas in the path folder.

       

      Does it have something to do with what is in the following code?  In particular, is it saying the pathfolder cannot contain commas and to replace them?  If not, what does the text in red mean?

       

               var cSavePath = oOrigDoc.path.replace(/\/[^\/]+$/,"/");

       

      Thanks.

      S