Chromium Code Reviews| Index: lib/unittest/html_enhanced_config.dart |
| =================================================================== |
| --- lib/unittest/html_enhanced_config.dart (revision 9065) |
| +++ lib/unittest/html_enhanced_config.dart (working copy) |
| @@ -133,14 +133,14 @@ |
| } |
| ); |
| + var nonAlphanumeric = new RegExp('[^a-z0-9A-Z]'); |
| + |
| // output group headers and test rows |
| for (final test_ in flattened) { |
| // replace everything but numbers and letters from the group name with |
| // '_' so we can use in id and class properties. |
| - var safeGroup = test_.currentGroup |
| - .replaceAll("(?:[^a-z0-9 ]|(?<=['\"])s)",'_') |
| - .replaceAll(' ','_'); |
| + var safeGroup = test_.currentGroup.replaceAll(nonAlphanumeric,'_'); |
|
Siggi Cherem (dart-lang)
2012/06/25 21:37:23
add space after ','
|
| if (test_.currentGroup != previousGroup){ |