neuroglancerhub / ng_workspaces

5 stars 5 forks source link

Don't use 'g' when creating the RegExp object. #80

Closed neomorphic closed 4 years ago

neomorphic commented 4 years ago

This leads to unexpected behaviour with the matches.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/test