Regular Expression literal starting with equals sign

Discussion of actual or possible Photoshop Scripting Bugs, Anomalies and Documentation Errors

Moderators: xbytor, DavideBarranca, Paul MR

sheetjs
Posts: 1
Joined: Wed May 10, 2017 6:26 pm

Regular Expression literal starting with equals sign

Postby sheetjs » Wed May 10, 2017 6:35 pm

Code: Select all

/=+$/


Regular expressions literals starting with an equal sign are sometimes interpreted as the div-assignment operator.

One such fix, used in Base64.js, wraps the equal sign in a character class:

Code: Select all

/[=]+$/



Return to “Photoshop Scripting Bugs and Anomalies”

Who is online

Users browsing this forum: No registered users and 1 guest