mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
fixed merge conflict
This commit is contained in:
commit
d391dab558
3 changed files with 17 additions and 12 deletions
|
@ -21,6 +21,7 @@
|
|||
|
||||
var fs = require("fs");
|
||||
var os = require("os");
|
||||
var path = require('path');
|
||||
|
||||
/**
|
||||
* The IP ep-lite should listen to
|
||||
|
@ -88,7 +89,8 @@ exports.abiwordAvailable = function()
|
|||
}
|
||||
|
||||
//read the settings sync
|
||||
var settingsStr = fs.readFileSync("../settings.json").toString();
|
||||
var settingsPath = path.normalize(__dirname + "/../../");
|
||||
var settingsStr = fs.readFileSync(settingsPath + "settings.json").toString();
|
||||
|
||||
//remove all comments
|
||||
settingsStr = settingsStr.replace(/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+/gm,"").replace(/#.*/g,"").replace(/\/\/.*/g,"");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue