Browse Source

updateing isNumber regex

pull/169/head
Harish Krishna 9 years ago
parent
commit
346f187c3e
  1. 2
      sanitiser/_input.js

2
sanitiser/_input.js

@ -39,7 +39,7 @@ function sanitize( req ){
}
var tokenized = params.input.split(/[ ,]+/);
var hasNumber = /\d$/.test(params.input);
var hasNumber = /\d/.test(params.input);
// set target_layer if input length <= 3 characters
if (params.input.length <= 3 ) {

Loading…
Cancel
Save