Remove non-breaking spaces from code

This commit is contained in:
Arthur Baars
2025-09-05 09:41:15 +02:00
parent 2100dc1288
commit 5d3ec35e29
26 changed files with 43 additions and 43 deletions

View File

@@ -1,7 +1,7 @@
const axios = require('axios');
export const handler = async (req, res, next) => {
const { target } = req.body;
const { target } = req.body;
try {
// BAD: `target` is controlled by the attacker

View File

@@ -2,7 +2,7 @@ const axios = require('axios');
const validator = require('validator');
export const handler = async (req, res, next) => {
const { target } = req.body;
const { target } = req.body;
if (!validator.isAlphanumeric(target)) {
return next(new Error('Bad request'));

View File

@@ -1,9 +1,9 @@
type Mapped<MK extends string = ''> = {
    [mk in MK]: string
[mk in MK]: string
};
export function fn(ev: Mapped) {
    const props: Mapped = {
        ...ev
    };
const props: Mapped = {
...ev
};
}

View File

@@ -1,9 +1,9 @@
type Mapped<MK extends string = ';'> = {
    [mk in MK]: string
[mk in MK]: string
};
export function fn(ev: Mapped) {
    const props: Mapped = {
        ...ev
    };
const props: Mapped = {
...ev
};
}