Files
gitlabhq/lib/gitlab
Douwe Maan c9920c422d Merge branch 'fix-backslashes-inline-diff' into 'master'
Fix bug where backslashes in inline diffs could be dropped

This MR fixes a bug in inline diff generation causing backslashes to be dropped. For example, the input:

```
input.to_s.sub(/[\r\n].+/,'').sub(/\\[rn].+/, '').strip
```

The second backslash is dropped in the second `sub` statement:

![image](https://gitlab.com/gitlab-org/gitlab-ce/uploads/16e513894f7ecda1b111fe7d43e7f388/image.png)

With this fix, it looks like:

![image](https://gitlab.com/gitlab-org/gitlab-ce/uploads/90fd635a937a68f1b2403740ebc75e3a/image.png)

Closes #2253

See merge request !1143
2015-08-17 23:33:36 +00:00
..
2014-09-29 12:05:17 +03:00
2014-10-06 00:14:46 +02:00
2015-02-24 15:07:24 +01:00
2015-05-13 09:46:22 +02:00
2014-10-06 00:14:46 +02:00
2014-11-06 13:07:42 +02:00
2015-02-24 15:07:24 +01:00
2014-10-31 17:22:16 -07:00
2015-04-14 15:58:28 +02:00
2014-10-06 00:14:46 +02:00
2015-03-24 18:35:57 -07:00
2014-10-06 00:14:46 +02:00
2014-10-06 00:14:46 +02:00
2015-05-23 13:11:23 +03:00
2013-06-06 10:10:51 +09:00
2015-07-06 17:40:33 +03:00