mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-14 07:39:29 -07:00
additional eslint rules
This commit is contained in:
@@ -2,11 +2,11 @@ const locationCleanup = (input) => {
|
||||
// regexes to run
|
||||
const regexes = [
|
||||
// "Chicago / West Chicago", removes before slash
|
||||
/^[A-Za-z ]+ \/ /,
|
||||
/^[ A-Za-z]+ \/ /,
|
||||
// "Chicago/Waukegan" removes before slash
|
||||
/^[A-Za-z ]+\//,
|
||||
/^[ A-Za-z]+\//,
|
||||
// "Chicago, Chicago O'hare" removes before comma
|
||||
/^[A-Za-z ]+, /,
|
||||
/^[ A-Za-z]+, /,
|
||||
];
|
||||
|
||||
// run all regexes
|
||||
|
||||
Reference in New Issue
Block a user