Last active
December 30, 2015 08:59
-
-
Save tedslittlerobot/7805821 to your computer and use it in GitHub Desktop.
A basic php filter for responding to questions from project managers. will improve later.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// "/((can\'t we)|(we can)|(can we) just)?.*(make [a-z] up)?(bash|bosh|bish)?(behind the scenes)?(fudge|bodge)?(quick wins?)?.*((for now)|(can\'t we)|(this (time)|(once)))?/ | |
$prefix = '(can\'t we)|(we can)|(can we) just'; | |
$content = '(make [a-z] up)?(bash|bosh|bish)?(behind the scenes)?(fudge|bodge)?(quick wins?)?'; | |
$suffix = '(for now)|(can\'t we)|(this (time)|(once))'; | |
$filter = "/({$prefix})?.*{$content}.*({$suffix})?/"; | |
if ( preg_match( $filter, $question ) ) | |
{ | |
return 'no'; | |
} | |
else | |
{ | |
return $this->consider( $question ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
May I please suggest that we add Bodge as I just heard a PM say it and it gave me shivers of anger