SHARE
TWEET

Untitled

a guest Jun 26th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. // ...
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top