Merge pull request #2 from nickurt/fix-regex

Fix regex for #1 ...
This commit is contained in:
Thomas Hounsell 2014-12-22 17:30:14 +00:00
commit bc575dd075

View File

@ -245,7 +245,7 @@
});
$("#quickpaste").change(function () {
var regex = /([\d]{1,2})\.([\d]{1,2})\.([\d]{4,5})\.([\d]{1,5})\.([a-zA-Z0-9_\(\)-]+?)\.(\d\d\d\d\d\d-\d\d\d\d)/;
var regex = /([\d]{1,2})\.([\d]{1,2})\.([\d]{4,5})\.([\d]{1,5})\.([a-zA-Z0-9._\(\)-]+?)\.(\d\d\d\d\d\d-\d\d\d\d)/;
var result = regex.exec($("#quickpaste").val());
$("#MajorVersion").val(result[1]);