Skip to content

Commit

Permalink
make the map a private property
Browse files Browse the repository at this point in the history
  • Loading branch information
Karan Goel committed Dec 1, 2014
1 parent ebec25f commit caeb415
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/src/sanitizer.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
part of validator;

Map default_normalize_email_options = { 'lowercase': true };
Map _default_normalize_email_options = { 'lowercase': true };


// convert the input to a string
Expand Down Expand Up @@ -112,7 +112,7 @@ String escape(String str) {

// canonicalize an email address
String normalizeEmail(String email, [Map options]) {
options = _merge(options, default_normalize_email_options);
options = _merge(options, _default_normalize_email_options);
if (isEmail(email) == false) {
return '';
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: validator
version: 0.0.5
version: 0.0.6
author: Karan Goel <[email protected]>
description: String validation and sanitization for Dart.
homepage: https://github.com/karan/validator.dart
Expand Down

0 comments on commit caeb415

Please sign in to comment.