Index: lib/compiler/implementation/js/printer.dart |
diff --git a/lib/compiler/implementation/js/printer.dart b/lib/compiler/implementation/js/printer.dart |
index 6f550254382e4a1fa31156805ea77b4d03c0ee47..87a4ffd89edc041a1b1ffca632b9288ed9295668 100644 |
--- a/lib/compiler/implementation/js/printer.dart |
+++ b/lib/compiler/implementation/js/printer.dart |
@@ -44,12 +44,12 @@ class Printer implements NodeVisitor { |
void out(String str) { |
if (str != "") { |
- const identifierRegexp = const RegExp(r'^[a-zA-Z_0-9$]'); |
+ const identifierCharacterRegExp = const RegExp(r'^[a-zA-Z_0-9$]'); |
if (pendingSemicolon && (!shouldCompressOutput || str != "}")) { |
outBuffer.add(";"); |
} |
if (pendingSpace && |
- (!shouldCompressOutput || identifierRegexp.hasMatch(str))) { |
+ (!shouldCompressOutput || identifierCharacterRegExp.hasMatch(str))) { |
outBuffer.add(" "); |
} |
pendingSpace = false; |