You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Different ways to test for identifiers in JavaScript
Different ways to test for identifiers in JavaScript
Each file in this Gist is a different method of checking whether a string is an ECMAScript 5.1 identifier.
Each method consists of four data structures representing classes of Unicode characters. There are two main categories of data structures: letters and other characters. Identifiers must start with a character from the letters category (also $ or _), then they may optionally be followed by zero or more characters from the others category.
Each category has two sub-categories: singles and ranges. The singles are characters that only have zero or one adjacent characters within the same class according to their code point values. Every pair of characters in the ranges category compose a set of consecutive characters within the same class according to their code point values.
So, if composed to regular expressions, the categories resemble this:
Right-clicking a file will give you the option to open the file with Atom. Run
this batch file to add the same feature to folders and their backgrounds.
Add an "Open command window here (Admin)" context menu to folders
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters