Accept reader-friendly paid build order labels
This commit is contained in:
@@ -1202,7 +1202,7 @@ function normalizeCandidateGroup(group = []) {
|
||||
}
|
||||
|
||||
const buildOrderLabelSeparator = '\\s*(?::|,|[-–—])\\s*';
|
||||
const buildOrderLabelPattern = '(build first|build this first|start here|start with|start by|ship first|ship this first|first week|week one|first-week build order|continue first|make tangible first|make tangible|try next|test first|test this first|prove first|prove manually|evidence next|learn next|test manually|test this manually|validate manually|validate this manually|manual proof|validate next|hold for later|leave out|skip for now|not yet|defer|set aside|out of scope|probably noise|park|do not build yet|do not build this yet|don\'t build yet)';
|
||||
const buildOrderLabelPattern = '(build first|build this first|start here|start with|start by|ship first|ship this first|first week|week one|first-week build order|next 48 hours|first 48 hours|48-hour move|continue first|make tangible first|make tangible next|make tangible|try next|test first|test this first|prove first|proof first|manual proof first|prove manually|evidence next|learn next|test manually|test this manually|validate manually|validate this manually|manual proof|validate next|hold for later|leave out for now|leave out|skip for now|wait until proof|do later|not yet|what not to build yet|defer|set aside|out of scope|probably noise|distraction|do not let this become|don\'t let this become|park|do not build yet|do not build this yet|don\'t build yet)';
|
||||
const buildOrderLabelRegex = new RegExp(`^${buildOrderLabelPattern}${buildOrderLabelSeparator}`, 'i');
|
||||
|
||||
function normalizeBuildOrderFragment(fragment = '') {
|
||||
@@ -1228,10 +1228,10 @@ function titleFromBuildOrderFragment(value = '') {
|
||||
}
|
||||
|
||||
function laneFromBuildOrderLabel(fragment = '') {
|
||||
if (new RegExp(`^(build first|build this first|start here|start with|start by|ship first|ship this first|first week|week one|first-week build order|continue first|make tangible first|make tangible)${buildOrderLabelSeparator}`, 'i').test(fragment)) return 'do-first';
|
||||
if (new RegExp(`^(try next|test first|test this first|prove first|prove manually|evidence next|learn next|test manually|test this manually|validate manually|validate this manually|manual proof|validate next)${buildOrderLabelSeparator}`, 'i').test(fragment)) return 'validate-next';
|
||||
if (new RegExp(`^(hold for later|leave out|skip for now|not yet|defer|do not build yet|do not build this yet|don't build yet|don't build this yet)${buildOrderLabelSeparator}`, 'i').test(fragment)) return 'defer';
|
||||
if (new RegExp(`^(set aside|out of scope|probably noise|park)${buildOrderLabelSeparator}`, 'i').test(fragment)) return 'park';
|
||||
if (new RegExp(`^(build first|build this first|start here|start with|start by|ship first|ship this first|first week|week one|first-week build order|next 48 hours|first 48 hours|48-hour move|continue first|make tangible first|make tangible next|make tangible)${buildOrderLabelSeparator}`, 'i').test(fragment)) return 'do-first';
|
||||
if (new RegExp(`^(try next|test first|test this first|prove first|proof first|manual proof first|prove manually|evidence next|learn next|test manually|test this manually|validate manually|validate this manually|manual proof|validate next)${buildOrderLabelSeparator}`, 'i').test(fragment)) return 'validate-next';
|
||||
if (new RegExp(`^(hold for later|leave out for now|leave out|skip for now|wait until proof|do later|not yet|what not to build yet|defer|do not build yet|do not build this yet|don't build yet|don't build this yet)${buildOrderLabelSeparator}`, 'i').test(fragment)) return 'defer';
|
||||
if (new RegExp(`^(set aside|out of scope|probably noise|distraction|do not let this become|don't let this become|park)${buildOrderLabelSeparator}`, 'i').test(fragment)) return 'park';
|
||||
return '';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user