forked from denghongcai/forsaken-mail
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: 🐛 add default keyword blacklist
- Loading branch information
1 parent
bc635df
commit a9ba767
Showing
4 changed files
with
44 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* Created by Hongcai Deng on 2015/12/28. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
const path = require('path'); | ||
const fs = require('fs'); | ||
|
||
const defaultConfigJsonPath = path.join(__dirname, '..', 'config-default.json') | ||
const defaultConfigPath = path.join(__dirname, '..', 'config-default.js') | ||
|
||
let config = {}; | ||
|
||
if (fs.existsSync(defaultConfigJsonPath)) { | ||
config = require(defaultConfigJsonPath); | ||
} else { | ||
config = require(defaultConfigPath); | ||
} | ||
|
||
module.exports = config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters