Browse Source

Fix a phantomas offender parsing problem with spaces

Gaël Métais 8 năm trước cách đây
mục cha
commit
db5632d3ba
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lib/offendersHelpers.js

+ 1 - 1
lib/offendersHelpers.js

@@ -175,7 +175,7 @@ var OffendersHelpers = function() {
         // Remove any line breaks
         offender = offender.replace(/(\r\n|\n|\r)/gm, '');
 
-        var parts = /^(.*) (?:<([^ \(]*)>|\[inline CSS\]) @ (\d+):(\d+)$/.exec(offender);
+        var parts = /^(.*) (?:<([^ \(]*)>|\[inline CSS\]) ?@ ?(\d+):(\d+)$/.exec(offender);
         
         if (!parts) {
             return {