additional eslint rules
This commit is contained in:
parent
b890b4e53d
commit
3743c45de6
26 changed files with 1079 additions and 184 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue