forked from lxm_front/Mergely
Fixes parsing diffs that contains text that looks like a valid diff, but clearly is not.
This commit is contained in:
@@ -12,7 +12,7 @@ Mgly.Timer = function(){
|
||||
self.start();
|
||||
}
|
||||
|
||||
Mgly.ChangeExpression = new RegExp(/(\d+(?:,\d+)?)([acd])(\d+(?:,\d+)?)/);
|
||||
Mgly.ChangeExpression = new RegExp(/(^(?![><-])*\d+(?:,\d+)?)([acd])(\d+(?:,\d+)?)/);
|
||||
|
||||
Mgly.DiffParser = function(diff) {
|
||||
var changes = [];
|
||||
|
||||
Reference in New Issue
Block a user