-
-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
Description
const ret = require('ret');
let tokens = ret(^\/store\/(?:([^\/]+?)));
Question mark after the plus in the regex is a lazy quantifier but it is considered as optional identifier, and in the result:
{ "type": 0, "stack": [ { .... { "type": 1, "stack": [ { "type": 1, "stack": [ { "type": 5, "min": 0 #this mean that it is optional, "max": 1, "value": { ... } } } ] ... } ] }
Reactions are currently unavailable