Skip to content

Commit 1f2ca14

Browse files
committed
upcoming job: simplify regex for launchpad matching
1 parent 481ccfc commit 1f2ca14

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

jobs/upcoming.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,10 @@ module.exports = async () => {
147147
flightNumbers.push(baseFlightNumber + wikiIndex);
148148

149149
// Wiki launchpad matchers
150-
const slc40Pattern = /^.*SLC-40.*LC-39A|BC?.*$/i;
151-
const lc39aPattern = /^.*LC-39A.*SLC-40|BC?.*$/i;
152-
const slc4ePattern = /^.*SLC-4E.*$/i;
153-
const bcPattern = /^.*BC.*SLC-40|LC-39A?.*$/i;
150+
const slc40Pattern = /^SLC-40.*$/i;
151+
const lc39aPattern = /^LC-39A.*$/i;
152+
const slc4ePattern = /^SLC-4E.*$/i;
153+
const bcPattern = /^BC.*$/i;
154154

155155
// Calculate launch site depending on wiki manifest
156156
let launchpadId;

0 commit comments

Comments
 (0)