Skip to content

Commit efcd7a7

Browse files
Fixed position range paste issue (stripping out non-digits)
1 parent 06fb58a commit efcd7a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/webapp/index.jsp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2720,8 +2720,8 @@ https://doi.org/10.1093/gigascience/giz051</pre>
27202720
27212721
if (paste.includes('-')) {
27222722
var parts = paste.split('-').map(part => part.trim());
2723-
inputs.min.val(parts[0]);
2724-
inputs.max.val(parts[1]);
2723+
inputs.min.val(parts[0].replace(/\D/g, ''));
2724+
inputs.max.val(parts[1].replace(/\D/g, ''));
27252725
} else {
27262726
$(event.target).val(paste);
27272727
}

0 commit comments

Comments
 (0)