Index: utils/apidoc/apidoc.dart |
diff --git a/utils/apidoc/apidoc.dart b/utils/apidoc/apidoc.dart |
index 7a9e5cbc9409205c3a28439b0e86503a97e535b9..58ff91ad46c260e6240b2fd5b79c72b2eb1709c2 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(new RegExp("@([a-zA-Z]+) ([^;]+)(?:;|\$)"), |
+ text.replaceAll(const RegExp("@([a-zA-Z]+) ([^;]+)(?:;|\$)"), |
'').trim(); |
if (strippedText.isEmpty) return null; |
return super.createDocComment(strippedText, inheritedFrom); |