|
|
@ -38,6 +38,7 @@ function addPhrase(abbrevation, phrase) {
|
|
|
|
var jsonPath = path.join(__dirname, '..', 'abbreviation_key.json');
|
|
|
|
var jsonPath = path.join(__dirname, '..', 'abbreviation_key.json');
|
|
|
|
fs.unlinkSync(jsonPath);
|
|
|
|
fs.unlinkSync(jsonPath);
|
|
|
|
fs.writeFileSync(jsonPath, jsonString, { encoding: 'utf8' }, "\t");
|
|
|
|
fs.writeFileSync(jsonPath, jsonString, { encoding: 'utf8' }, "\t");
|
|
|
|
|
|
|
|
console.log("Added Phrase to list. JSON now contains:" + abbreviationKey);
|
|
|
|
} catch (err) {
|
|
|
|
} catch (err) {
|
|
|
|
console.error(err);
|
|
|
|
console.error(err);
|
|
|
|
}
|
|
|
|
}
|
|
|
|