+2013-08-23 Joseph Pecoraro <pecoraro@apple.com>
+
+ Web Inspector: Fix js minification of updated CodeMirror
+ https://bugs.webkit.org/show_bug.cgi?id=120231
+
+ Reviewed by Andy Estes.
+
+ Workaround a jsmin issue with "return //.test();" lines when
+ minifying JavaScript in production builds.
+
+ * Scripts/copy-user-interface-resources.sh:
+ * UserInterface/External/CodeMirror/codemirror.js:
+ (window.CodeMirror):
+
2013-08-22 Joseph Pecoraro <pecoraro@apple.com>
<https://webkit.org/b/120165> Web Inspector: Update CodeMirror to 3.16.1
};
else if (safari && !/Version\/([6-9]|\d\d)\b/.test(navigator.userAgent))
spanAffectsWrapping = function(str, i) {
- return /\-[^ \-?]|\?[^ !\'\"\),.\-\/:;\?\]\}]/.test(str.slice(i - 1, i + 1));
+ var result = /\-[^ \-?]|\?[^ !\'\"\),.\-\/:;\?\]\}]/.test(str.slice(i - 1, i + 1));
+ return result;
};
else if (webkit && !/Chrome\/(?:29|[3-9]\d|\d\d\d)\./.test(navigator.userAgent))
spanAffectsWrapping = function(str, i) {
if (/\w/.test(str.charAt(i - 2)) && /[^\-?\.]/.test(str.charAt(i))) return true;
if (i > 2 && /[\d\.,]/.test(str.charAt(i - 2)) && /[\d\.,]/.test(str.charAt(i))) return false;
}
- return /[~!#%&*)=+}\]|\"\.>,:;][({[<]|-[^\-?\.\u2010-\u201f\u2026]|\?[\w~`@#$%\^&*(_=+{[|><]|…[\w~`@#$%\^&*(_=+{[><]/.test(str.slice(i - 1, i + 1));
+ var result = /[~!#%&*)=+}\]|\"\.>,:;][({[<]|-[^\-?\.\u2010-\u201f\u2026]|\?[\w~`@#$%\^&*(_=+{[|><]|…[\w~`@#$%\^&*(_=+{[><]/.test(str.slice(i - 1, i + 1));
+ return result;
};
var knownScrollbarWidth;