From 5b4b1df0e8752fb5fdf8f2d3b972a0fa183426f6 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Fri, 8 May 2015 13:31:45 +0300 Subject: Bugfix --- coqCounter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coqCounter.js b/coqCounter.js index 1f81915..69b1bac 100644 --- a/coqCounter.js +++ b/coqCounter.js @@ -25,7 +25,7 @@ (function($){ $.fn.coqCounter = function(output) { $(this).change(function(){ - var regex = /(?:^|\n)([a-zA-Z_'0-9]+)/g; + var regex = /(?:^|\n)([a-z][a-zA-Z_']*)/g; var value = $(this).val(); var matches = [], i = 0; -- cgit v1.2.3