Index: trunk/extensions/SelectionSifter/AssessmentsExtractor.php |
— | — | @@ -24,7 +24,8 @@ |
25 | 25 | * @return array Assessments |
26 | 26 | */ |
27 | 27 | public function extractAssessments() { |
28 | | - $regex = '/<span data-project-name="(?P<project>.*)" data-importance="(?P<importance>.*)" data-quality="(?P<quality>.*)"\s*>/'; |
| 28 | + // Am going to a special level in hell for using Regex to parse HTML, am I not? |
| 29 | + $regex = '/<span data-project-name="(?P<project>.*)" data-importance="(?P<importance>\w*)" data-quality="(?P<quality>\w*)"\s*>/'; |
29 | 30 | $matches = array(); |
30 | 31 | preg_match_all($regex, $this->mText, $matches, PREG_SET_ORDER); |
31 | 32 | |