Skip to content

Commit

Permalink
Fixed position range paste issue (stripping out non-digits)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuilhemSempere authored Oct 10, 2024
1 parent 06fb58a commit efcd7a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -2720,8 +2720,8 @@ https://doi.org/10.1093/gigascience/giz051</pre>
if (paste.includes('-')) {
var parts = paste.split('-').map(part => part.trim());
inputs.min.val(parts[0]);
inputs.max.val(parts[1]);
inputs.min.val(parts[0].replace(/\D/g, ''));
inputs.max.val(parts[1].replace(/\D/g, ''));
} else {
$(event.target).val(paste);
}
Expand Down

0 comments on commit efcd7a7

Please sign in to comment.