Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(298)

Unified Diff: utils/apidoc/mdn/extract.dart

Issue 11377126: Two more files with const RegExp. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/_internal/dartdoc/lib/src/markdown/html_renderer.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/apidoc/mdn/extract.dart
diff --git a/utils/apidoc/mdn/extract.dart b/utils/apidoc/mdn/extract.dart
index e722f847ff7580b42cbc2ae0547cb5bc0ac1c11d..4a37154995653f381fb1e6944f9d275896d21cdf 100644
--- a/utils/apidoc/mdn/extract.dart
+++ b/utils/apidoc/mdn/extract.dart
@@ -1121,10 +1121,10 @@ void run() {
}
// Fix up links.
- const SHORT_LINK = new RegExp(r'^[\w/]+$');
- const INNER_LINK = new RegExp(r'[Ee]n/(?:[\w/]+/|)([\w#.]+)(?:\(\))?$');
- const MEMBER_LINK = new RegExp(r'(\w+)[.#](\w+)');
- const RELATIVE_LINK = new RegExp(r'^(?:../)*/?[Ee][Nn]/(.+)');
+ final SHORT_LINK = new RegExp(r'^[\w/]+$');
+ final INNER_LINK = new RegExp(r'[Ee]n/(?:[\w/]+/|)([\w#.]+)(?:\(\))?$');
+ final MEMBER_LINK = new RegExp(r'(\w+)[.#](\w+)');
+ final RELATIVE_LINK = new RegExp(r'^(?:../)*/?[Ee][Nn]/(.+)');
// - Make relative links absolute.
// - If we can, take links that point to other MDN pages and retarget them
« no previous file with comments | « sdk/lib/_internal/dartdoc/lib/src/markdown/html_renderer.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698