]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/js/tinymce/utils/validate.js
Wordpress 2.5.1
[autoinstalls/wordpress.git] / wp-includes / js / tinymce / utils / validate.js
index 92b44edc02e7cf52a4067217b4cc3047054013ee..8e7022098124a63698ea662e6bbeab3a215b6462 100644 (file)
@@ -1,10 +1,10 @@
 /**
- * $Id: validate.js 162 2007-01-03 16:16:52Z spocke $
+ * $Id: validate.js 673 2008-03-06 13:26:20Z spocke $
  *
  * Various form validation methods.
  *
  * @author Moxiecode
- * @copyright Copyright © 2004-2007, Moxiecode Systems AB, All rights reserved.
+ * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
  */
 
 /**
@@ -31,7 +31,7 @@ var Validator = {
        },
 
        isSize : function(s) {
-               return this.test(s, '^[0-9]+(px|%)?$');
+               return this.test(s, '^[0-9]+(%|in|cm|mm|em|ex|pt|pc|px)?$');
        },
 
        isId : function(s) {