Advertisement
Guest User

Untitled

a guest
Nov 25th, 2023
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. const var_reg = /(\w+)=(.+)/g;
  2. const matches = [...data.matchAll(var_reg)];
  3. matches.forEach(match => {
  4. setLocal(match[1], match[2]);
  5. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement