Skip to content

Commit

Permalink
Fix markup of README
Browse files Browse the repository at this point in the history
  • Loading branch information
akzhan committed May 4, 2011
1 parent 33779a9 commit 89c1119
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -36,33 +36,32 @@ Keyfilter supports extending and changing of list of provided masks.

### Example of extending

`/*
* Key filter masks for hosting.
*/
/*
* Key filter masks for hosting.
*/

(function($)
{
var hostingMasks = {
dir: /[a-z0-9_\/\-\.]/i,
ftpuser: /[a-z0-9_]/
};
(function($)
{
var hostingMasks = {
dir: /[a-z0-9_\/\-\.]/i,
ftpuser: /[a-z0-9_]/
};

$.extend($.fn.keyfilter.defaults.masks, hostingMasks);
$.extend($.fn.keyfilter.defaults.masks, hostingMasks);

})(jQuery);`
})(jQuery);

### Override built-in masks to allow french accents

`/*
* Key filter masks supporting french accents.
*/
/*
* Key filter masks supporting french accents.
*/

(function($)
{
$.extend($.fn.keyfilter.defaults.masks, {
(function($)
{
$.extend($.fn.keyfilter.defaults.masks, {
alpha: /[a-zéèçàêoe_]/i,
alphanum: /[a-zéèçàêoe0-9_]/i
});

})(jQuery);`
});
})(jQuery);

0 comments on commit 89c1119

Please sign in to comment.