Pogues icon indicating copy to clipboard operation
Pogues copied to clipboard

Constraints on variable names

Open romaintailhurat opened this issue 1 year ago • 1 comments

We define some good practices and constraints for Pogues variables naming here.

It would be better to implement them directly in Pogues.

romaintailhurat avatar Sep 25 '23 16:09 romaintailhurat

With rule being [A-Z0-9_]*, we can have:

let rule = /[A-Z0-9_]*/
let badName = "bad-Var_Name" 
let ruleCheck = rule.exec(badName)
let checkOK = check[0] != badName ? false : true

romaintailhurat avatar Dec 20 '23 07:12 romaintailhurat