Add logic to parse and remove any instances of https://twitter.com by replacing with user's preference

The issue was happening since the original regex is checking for href tags only, so I tried a simpler approach of searching for https://twitter.com instead whenever the regex does not match the input string

Add Nodemon package to dev dependencies for local debugging
This commit is contained in:
Anshuman Kumar
2022-12-29 20:19:58 +05:30
parent 22b63a3415
commit c71bf6ee48
4 changed files with 904 additions and 190 deletions

View File

@@ -20,7 +20,8 @@
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node app.js"
"start": "node app.js",
"dev": "nodemon app.js"
},
"dependencies": {
"compression": "^1.7.4",
@@ -34,5 +35,7 @@
"pug": "^3.0.2",
"redis": "^3.1.2"
},
"devDependencies": {}
"devDependencies": {
"nodemon": "^2.0.20"
}
}