diff --git a/js/main.js b/js/main.js index 5dc2367..eaee794 100644 --- a/js/main.js +++ b/js/main.js @@ -9,7 +9,7 @@ $(function(){ var toVal = to.val(); if (fromVal.length > 10 && toVal.length > 10) { var fromCompSave = fromVal.match(/eyAi.*/); - var toCompID = toVal.match(/^(.*)eyAi/); + var toCompID = toVal.match(/^(.*?)eyAi/); if (fromCompSave && toCompID) { result.val(toCompID[1]+fromCompSave[0]); error.hide();