mirror of
https://github.com/GOSTSec/gostexplr
synced 2025-02-06 11:54:17 +00:00
Slice extra -000 in search string
This commit is contained in:
parent
8fc53880a2
commit
c4e33e0f6f
@ -5,7 +5,10 @@ var router = express.Router();
|
|||||||
/* GET home page. */
|
/* GET home page. */
|
||||||
router.post('/', async function(req, res, next) {
|
router.post('/', async function(req, res, next) {
|
||||||
|
|
||||||
const search = encodeURI(req.body.search);
|
let search = encodeURI(req.body.search).trim();
|
||||||
|
if (search.endsWith('-000')) {
|
||||||
|
search = search.slice(0, -4);
|
||||||
|
}
|
||||||
|
|
||||||
// looking for address
|
// looking for address
|
||||||
const address = await models.Address.findOne({
|
const address = await models.Address.findOne({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user