Commits

Jiří Knesl  committed 811cfc3

update readme.txt

  • Participants
  • Parent commits 87274c8
  • Tags 1.1

Comments (0)

Files changed (1)

 
 Changes Czech localized-chars to numbers
 
-Automatically turns +ěščřžýáíé into 1234567890
+Automatically converts +ěščřžýáíé into 1234567890
 
-Licence: BSD-like
+Licence: BSD-like 
 Author: Jiri Knesl <jiri@sprintmasters.cz> (http://www.knesl.com)
 
 Example in jQuery:
 $(document).ready(function(){
 	var escr = new ESCR();
 	$("input.numeric").change(function(){
-		val = $(this).val;
-		val( escr.rewrite( val() ) );
+		var val = $(this).val();
+		$(this).val(escr.rewrite(val));
 	});
-});
+});
+
+Example in node.js:
+
+ESCR = require "lib/escr"
+var ESCR = new ESCR();
+escr.rewrite("ěščř")