Skip to content

Commit

Permalink
Replaced lookbehind assertion in clientside
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Rydell authored and joakimlindblad committed Aug 11, 2021
1 parent 65bc553 commit 0454caa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/overlayHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const overlayHandler = (function (){
const names = transforms.map(transform => transform.match(/.+(?=\()/g)[0]);
transforms.forEach(transform => {
const name = transform.match(/.+(?=\()/g);
const values = transform.match(/(?<=\(.*)[^\s,]+(?=.*\))/g);
const values = transform.match(/[-+]?[0-9]*\.?[0-9]+/g);
transObj[name] = values;
});

Expand Down

0 comments on commit 0454caa

Please sign in to comment.