I’m trying to use a simple regex match. Unfortunately I’m unable to get it to work in the production setup:
- meteor dev | server side : works
- meteor dev | client side : works
- production | server side : works
- production | client side : doesn’t work!
Do you have any idea why this could be the case?
const re = /m\.(\w+)/g; // same with new RegExp('m\\.(\\w+)', 'g'); match = re.exec(stringToMatch); console.log(match); // returns the match object in 1-3 and null in 4
Prints the match object in 1-3. and null in 4.