Skip to content

Commit 5a0c870

Browse files
committed
rm u regex
1 parent 75099a0 commit 5a0c870

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

app/components/Recaptcha.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const emailRules = [
3030
return "E-mail is required.";
3131
},
3232
(value) => {
33-
if (/.+@.+\..+/.test(value)) {
33+
if (/.+@.+\..+/u.test(value)) {
3434
return true;
3535
}
3636
return "E-mail must be valid.";

app/utils/local/microservices.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ async function runScript(
4949
child.on("kill", () => {
5050
console.log(`[${execName}] process killed`);
5151
});
52-
child.name = command.replace(/^.*[\\/]/, "");
52+
child.name = command.replace(/^.*[\\/]/u, "");
5353

5454
try {
5555
return await pTimeout(waitForReady(child, expectedResponse), {

app/utils/local/scripts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ async function waitNuxt(nuxtProcess) {
2727
for await (const [data] of on(nuxtProcess.stdout, "data")) {
2828
const output = data.toString();
2929
console.log("Nuxt:", output);
30-
const portMatch = output.match(/Listening on http:\/\/\[::\]:(\d+)/);
30+
const portMatch = output.match(/Listening on http:\/\/\[::\]:(\d+)/u);
3131
if (portMatch) {
3232
const [, nuxtPort] = portMatch;
3333

app/utils/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import path from "node:path";
55
// Third party imports
66
import JSZip from "jszip";
77

8-
async function unzipFile(zipFilePath, outputDir = zipFilePath.replace(/\.[^/.]+$/, "")) {
8+
async function unzipFile(zipFilePath, outputDir = zipFilePath.replace(/\.[^/.]+$/u, "")) {
99
console.log("Unzipping file...", zipFilePath, outputDir);
1010
try {
1111
const data = await fs.promises.readFile(zipFilePath);

0 commit comments

Comments
 (0)