pariazar / perfect-express-sanitizer

a complete package to control user input data to prevent Cross Site Scripting (XSS) ,Sql injection and no Sql injection attack
https://www.npmjs.com/package/perfect-express-sanitizer
MIT License
15 stars 2 forks source link

Every number "56" is delete of the string #10

Closed EnriqueER closed 1 year ago

EnriqueER commented 1 year ago

Hello good mornign.

I started to use your module in Nodejs and everything works fine but I just noticed that if you put the numbre "56" is deleted, for example if some telefon number like this "55-56-89-85" is set to be sanitized the number "56" will be deleted.

var perfectExpressSanitizer = require("perfect-express-sanitizer")

let elementClean = perfectExpressSanitizer.sanitize.prepareSanitize("55-56-89-85", { xss: true, noSql: true, sql: true, level: 5 });

console.log(elementClean)

OUTPUT: "5589-85"

Maybe I am doing something wrong?

pariazar commented 1 year ago

Hello thanks for your helpful comment, you're right, there was a problem when input has 56 number that fixed in new version 1.0.10