Skip to content
This repository was archived by the owner on Jan 7, 2019. It is now read-only.

Commit ae523f7

Browse files
committed
Merge pull request #35 from jadejs/maxlength
Support maxlength as an alias of maxLength.
2 parents 301415b + af7d93f commit ae523f7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/utils/compiler.js

+1
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ function getAttributes(attrs){
258258
attrs.forEach(function(attr){
259259
var key = attr.name;
260260
if (key === 'for') key = 'htmlFor';
261+
if (key === 'maxlength') key = 'maxLength';
261262
if (key.substr(0, 2) === 'on') {
262263
var ast = uglify.parse('jade_interp = (' + attr.val + ')');
263264
var val = ast.body[0].body.right;

0 commit comments

Comments
 (0)