<commit_before>FormValidator.js
================

Javascript library for form data validation

## Features

Validation based on:

* single regexp per field
* single synchronous/asynchronous function per field
* multiple cascade regexps per field
* multiple cascade functions per field

Dependencies:

* no dependency from other framework, but I create a wrapper for use as jquery plugin (see below)

## Examples 

### Basic, wrapped as jquery plugin /examples/basic.html

```javascript
$('.form-to-validate').formValidator({
    email: {
        rule: /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i,
        message: "Mail must be valid"
    },
    age: {
    	rule: function(value) {
    		return value >= 18;
    	},
    	message: "Age must be 18+"
	}
}, {
    success: function(e) {
        alert('ok!')
    }
});
```

## Browser Compatibility

IE8+, Chrome, Firefox, Safari

## Todo

* multiple async cascade function per field validation
<commit_msg>Remove heading<commit_after>FormValidator.js
================

Javascript library for form data validation

## Features

Validation based on:

* single regexp per field
* single synchronous/asynchronous function per field
* multiple cascade regexps per field
* multiple cascade functions per field

Dependencies:

* no dependency from other framework, but I create a wrapper for use as jquery plugin (see below)

## Examples 

Basic, wrapped as jquery plugin - /examples/basic.html

```javascript
$('.form-to-validate').formValidator({
    email: {
        rule: /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i,
        message: "Mail must be valid"
    },
    age: {
    	rule: function(value) {
    		return value >= 18;
    	},
    	message: "Age must be 18+"
	}
}, {
    success: function(e) {
        alert('ok!')
    }
});
```

## Browser Compatibility

IE8+, Chrome, Firefox, Safari

## Todo

* multiple async cascade function per field validation

{'fraction_non_alphanumeric': 0.17732997481108312, 'fraction_numerical': 0.011083123425692695, 'mean_word_length': 3.326797385620915, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '32924', 'n_tokens_mistral': 674, 'n_tokens_neox': 623, 'n_words': 187}