Also fix a hyphen breaking the quickpaste.

This commit is contained in:
Thomas Hounsell 2014-12-16 15:15:16 +00:00
parent 01a8d0e15a
commit d91b52f38e

View File

@ -245,7 +245,7 @@
}); });
$("#quickpaste").change(function () { $("#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()); var result = regex.exec($("#quickpaste").val());
$("#MajorVersion").val(result[1]); $("#MajorVersion").val(result[1]);