Strong password policy in meteor server

I am trying to add strong password policy in Meteor server. In Current package code is like this.

Accounts._loginButtons.validatePassword = function(password, passwordAgain) {
if (password.length >= 6) {
//code }}

I want to have one small case and one capital and one numberic … So tried to a add a regex

Accounts._loginButtons.validatePassword = function(password, passwordAgain) {
var reg = /^(?=.*\d)(?=.*[!@#$%^&*])(?=.*[a-z])(?=.*[A-Z]).{8,}$/;

if(re.test(password)){ //code }}

But i am getting build “exception unexcepted token”

Package Name:

ian:accounts-ui-bootstrap-3 (https://i.stack.imgur.com/OFO4y.png)