Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. // ...
  2. let match, lastIndex = 0, matcher = /:([a-zA-Z_$][a-zA-Z0-9_$]*)|**|*|(|)/g
  3. while ((match = matcher.exec(pattern))) {
  4. if (match.index !== lastIndex) {
  5. // ...
  6. }
  7. // ...
  8. lastIndex = matcher.lastIndex
  9. }
  10. // ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement