more quote identeiifers fixessss
[Pman.Core] / widgets / SecurePass.js
index bc1c262..8190c7d 100644 (file)
@@ -77,7 +77,7 @@ Ext.extend(Ext.form.SecurePass, Ext.form.TextField, {
     onRender: function (ct, position) {
         Ext.form.SecurePass.superclass.onRender.call(this, ct, position);
         this.wrap = this.el.wrap({cls: 'x-form-field-wrap'});
-        this.trigger = this.wrap.createChild({tag: 'div', cls: 'StrengthMeter ' + this.triggerClass});
+        this.trigger = this.wrap.createChild({tag: 'div', cls: 'roo-strength-meter ' + this.triggerClass});
 
         this.trigger.createChild({
             tag: 'div',
@@ -179,7 +179,7 @@ Ext.extend(Ext.form.SecurePass, Ext.form.TextField, {
             return true;
         }
         
-        if ('[\x21-\x7e]*'.match(value)) {
+        if (value.match(/[\x21-\x7e]*/)) {
             this.markInvalid(this.errors.PwdBadChar);
             return false;
         }