Skip to content

Commit

Permalink
chg: trim user input
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteimen committed Oct 10, 2023
1 parent c8faf3b commit c927329
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ <h6 class="text-stroke text-white pb-5" id="processor_crossmark_overlay_text"></
}
}
function getCcy() {
return get('txtCcy').toUpperCase()
return trim(get('txtCcy')).toUpperCase()
}
function get(id) {
return document.getElementById(id).value
Expand Down Expand Up @@ -540,11 +540,11 @@ <h6 class="text-stroke text-white pb-5" id="processor_crossmark_overlay_text"></
document.getElementById('amount').innerText = amount
let ccy = getCcy()
document.getElementById('ccy').innerText = ccy
let to = get('txtTo')
let to = trim(get('txtTo'))
set('to', to)
let refno = get('txtRefNo')
let refno = trim(get('txtRefNo'))
set('refno', refno)
let msg = get('txtMsg')
let msg = trim(get('txtMsg'))
set('msg', msg)

let isEditable = isVisible('divInputAmount')
Expand Down

0 comments on commit c927329

Please sign in to comment.