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

Unified Diff: utils/pub/yaml/composer.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 | « utils/pub/version.dart ('k') | utils/tests/pub/pub_install_git_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/yaml/composer.dart
diff --git a/utils/pub/yaml/composer.dart b/utils/pub/yaml/composer.dart
index 18df4e8f451e06ad04f1a0c163d38a095dc6c491..52d9885097d46a7770ae6060de9cd48ef5217be2 100644
--- a/utils/pub/yaml/composer.dart
+++ b/utils/pub/yaml/composer.dart
@@ -154,7 +154,7 @@ class _Composer extends _Visitor {
if (match != null) {
// YAML allows floats of the form "0.", but Dart does not. Fix up those
// floats by removing the trailing dot.
- var matchStr = match.group(0).replaceAll(new RegExp(@"\.$"), "");
+ var matchStr = match.group(0).replaceAll(new RegExp(r"\.$"), "");
return new _ScalarNode(_Tag.yaml("float"),
value: Math.parseDouble(matchStr));
}
« no previous file with comments | « utils/pub/version.dart ('k') | utils/tests/pub/pub_install_git_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698