From 2ee78ec556458ec0ee727c6b8bc482711e7f6a5c Mon Sep 17 00:00:00 2001 From: Daniel Gasienica Date: Fri, 6 Apr 2018 12:40:26 -0400 Subject: [PATCH] Prefer `path` over `Path` --- js/modules/privacy.js | 4 ++-- test/modules/privacy_test.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/modules/privacy.js b/js/modules/privacy.js index 1a90884c5..2855bdc56 100644 --- a/js/modules/privacy.js +++ b/js/modules/privacy.js @@ -1,6 +1,6 @@ /* eslint-env node */ -const Path = require('path'); +const path = require('path'); const { escapeRegExp, @@ -13,7 +13,7 @@ const { compose } = require('lodash/fp'); const PHONE_NUMBER_PATTERN = /\+\d{7,12}(\d{3})/g; const GROUP_ID_PATTERN = /(group\()([^)]+)(\))/g; -const APP_ROOT_PATH = Path.join(__dirname, '..', '..', '..'); +const APP_ROOT_PATH = path.join(__dirname, '..', '..', '..'); const APP_ROOT_PATH_PATTERN = (() => { try { // Safe `String::replaceAll`: diff --git a/test/modules/privacy_test.js b/test/modules/privacy_test.js index 156d3e826..43f317f9a 100644 --- a/test/modules/privacy_test.js +++ b/test/modules/privacy_test.js @@ -1,11 +1,11 @@ -const Path = require('path'); +const path = require('path'); const { assert } = require('chai'); const Privacy = require('../../js/modules/privacy'); -const APP_ROOT_PATH = Path.join(__dirname, '..', '..', '..'); +const APP_ROOT_PATH = path.join(__dirname, '..', '..', '..'); describe('Privacy', () => { describe('redactPhoneNumbers', () => {