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

Unified Diff: lib/src/string_scanner.dart

Issue 1045533002: pkg/string_scanner: code format, expanded dependency constraint on unittest (Closed) Base URL: https://github.com/dart-lang/string_scanner.git@master
Patch Set: Created 5 years, 9 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 | « lib/src/line_scanner.dart ('k') | lib/src/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/string_scanner.dart
diff --git a/lib/src/string_scanner.dart b/lib/src/string_scanner.dart
index bc5e1f58d4c872ad46c3de1ef021d1badb41e90a..d9c1c2fd3c109c692671508a2e514a6bd5e9ec16 100644
--- a/lib/src/string_scanner.dart
+++ b/lib/src/string_scanner.dart
@@ -107,8 +107,8 @@ class StringScanner {
if (!_slashAutoEscape) source = source.replaceAll("/", "\\/");
name = "/$source/";
} else {
- name = pattern.toString()
- .replaceAll("\\", "\\\\").replaceAll('"', '\\"');
+ name =
+ pattern.toString().replaceAll("\\", "\\\\").replaceAll('"', '\\"');
name = '"$name"';
}
}
« no previous file with comments | « lib/src/line_scanner.dart ('k') | lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698