mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
preferences for 'excluded-directories' and 'excluded-files' always append to the builtin defaults
This commit is contained in:
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.
|
||||
|
||||
Reference in new issue
Block a user