Index: utils/apidoc/apidoc.dart |
diff --git a/utils/apidoc/apidoc.dart b/utils/apidoc/apidoc.dart |
index 785c497b46fe6438e93d9e7dd7a7b360af234185..11246dd362fda0624c806eb495f50a81803142ea 100644 |
--- a/utils/apidoc/apidoc.dart |
+++ b/utils/apidoc/apidoc.dart |
@@ -384,7 +384,7 @@ class Apidoc extends doc.Dartdoc { |
doc.DocComment createDocComment(String text, |
[ClassMirror inheritedFrom]) { |
String strippedText = |
- text.replaceAll(const RegExp("@([a-zA-Z]+) ([^;]+)(?:;|\$)"), |
+ text.replaceAll(new RegExp("@([a-zA-Z]+) ([^;]+)(?:;|\$)"), |
'').trim(); |
if (strippedText.isEmpty) return null; |
return super.createDocComment(strippedText, inheritedFrom); |