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

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

Issue 10981031: Convert raw strings in pub (and apidoc) to new syntax. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Respond to review. Created 8 years, 3 months 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 | « no previous file | utils/pub/hosted_source.dart » ('j') | 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 42cb8feff60fb10364d64e194f1d3ee79acf7646..20dcf217edf24f176d78de861e10929a6558f47c 100644
--- a/utils/apidoc/mdn/extract.dart
+++ b/utils/apidoc/mdn/extract.dart
@@ -679,8 +679,8 @@ Element findBest(Element root, List<Text> allText, String prop,
* for what these tags look like in the MDN docs.
*/
bool isObsolete(Element e) {
- RegExp obsoleteRegExp = new RegExp(@"(^|\s)obsolete(?=\s|$)");
- RegExp deprecatedRegExp = new RegExp(@"(^|\s)deprecated(?=\s|$)");
+ RegExp obsoleteRegExp = new RegExp(r"(^|\s)obsolete(?=\s|$)");
+ RegExp deprecatedRegExp = new RegExp(r"(^|\s)deprecated(?=\s|$)");
for (Element child in e.queryAll("span")) {
String t = child.text.toLowerCase();
if (t.startsWith("obsolete") || t.startsWith("deprecated")) return true;
@@ -1121,10 +1121,10 @@ void run() {
}
// Fix up links.
- const SHORT_LINK = const RegExp(@'^[\w/]+$');
- const INNER_LINK = const RegExp(@'[Ee]n/(?:[\w/]+/|)([\w#.]+)(?:\(\))?$');
- const MEMBER_LINK = const RegExp(@'(\w+)[.#](\w+)');
- const RELATIVE_LINK = const RegExp(@'^(?:../)*/?[Ee][Nn]/(.+)');
+ const SHORT_LINK = const RegExp(r'^[\w/]+$');
+ const INNER_LINK = const RegExp(r'[Ee]n/(?:[\w/]+/|)([\w#.]+)(?:\(\))?$');
+ const MEMBER_LINK = const RegExp(r'(\w+)[.#](\w+)');
+ const RELATIVE_LINK = const 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 | « no previous file | utils/pub/hosted_source.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698