| Index: src/ast.cc
|
| diff --git a/src/ast.cc b/src/ast.cc
|
| index f93d739d4e13fdf95188dae45b6be960a3819959..748c075c498967245ff827432237eeca30831cfc 100644
|
| --- a/src/ast.cc
|
| +++ b/src/ast.cc
|
| @@ -254,9 +254,7 @@ void* RegExpUnparser::VisitAlternative(RegExpAlternative* that, void* data) {
|
|
|
|
|
| void RegExpUnparser::VisitCharacterRange(CharacterRange that) {
|
| - if (that.is_character_class()) {
|
| - stream()->Add("&%c", that.from());
|
| - } else if (that.IsSingleton()) {
|
| + if (that.IsSingleton()) {
|
| stream()->Add("%c", that.from());
|
| } else {
|
| stream()->Add("%c-%c", that.from(), that.to());
|
|
|