Search found 1 match

by sheetjs
Wed May 10, 2017 6:35 pm
Forum: Photoshop Scripting Bugs and Anomalies
Topic: Regular Expression literal starting with equals sign
Replies: 1
Views: 10659

Regular Expression literal starting with equals sign

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

/[=]+$/