mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-09-03 17:52:30 +02:00
Improve input sanitization for split-pdf-by-sections
This commit is contained in:
parent
d9db298bc2
commit
07b3bfa1f3
@ -79,6 +79,12 @@
|
||||
|
||||
// Initial draw
|
||||
updateVisualAid();
|
||||
|
||||
// Removes all whitespace characters (spaces, tabs, newlines) as the user types
|
||||
document.getElementById('pageToSplit').addEventListener('input', function () {
|
||||
this.value = this.value.replace(/\s+/g, '');;
|
||||
});
|
||||
|
||||
</script>
|
||||
<br>
|
||||
<button type="submit" id="submitBtn" class="btn btn-primary" th:text="#{split-by-sections.submit}">Submit</button>
|
||||
|
Loading…
Reference in New Issue
Block a user