preferences for 'excluded-directories' and 'excluded-files' always append to the builtin defaults

This commit is contained in:
dloverin committed 2013-06-07 11:37:58 -04:00
1 parent d65fbdcacf
commit 759c3cd088
2 files changed
+30 -20

No files matched your search

@@ -81,7 +81,13 @@ define(function (require, exports, module) {
function settingsToRegExp(settings, defaultRegExp) {
var regExpString = "";
if (settings) {
if (settings instanceof Array && settings.length > 0) {
// Append default settings to user settings. The default
// settings are builtin and cannot be overridden.
if (defaultRegExp) {
settings.push("/" + defaultRegExp.source + "/");
}
// convert each string, with optional wildcards to an equivalent
// string in a regular expression.