Revision
3789
Author
lsansonetti@apple.com
Date
2010-03-17 18:07:57 -0700 (Wed, 17 Mar 2010)

Log Message

fixed a minor problem in rb_reg_regsub()

Modified Paths

Diff

Modified: MacRuby/trunk/string.c (3788 => 3789)


--- MacRuby/trunk/string.c	2010-03-18 01:05:03 UTC (rev 3788)
+++ MacRuby/trunk/string.c	2010-03-18 01:07:57 UTC (rev 3789)
@@ -3232,8 +3232,10 @@
 		}
 		break;
 
+	    default:
+		str_append_uchar(RSTR(val), '\\');
+		// fall through
 	    case '\\':
-	    default:
 		str_append_uchar(RSTR(val), c);
 		break;
 	}