Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
xsalonx committed Sep 22, 2023
1 parent cd64e3f commit 00e45bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/lib/alimonitor-services/helpers/ServicesDataCommons.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ const { rctData } = require('../../config/configProvider.js');
*/
const PERIOD_NAME_REGEX = /^LHC\d\d[a-zA-Z]+/;
const rightExtendRegEx = (srcRegEx, suffix) => {
const nR = RegExp(srcRegEx.source + suffix);
nR.rightExtend = (_suffix) => rightExtendRegEx(nR, _suffix);
return nR;
const newRegex = RegExp(srcRegEx.source + suffix);
newRegex.rightExtend = (_suffix) => rightExtendRegEx(newRegex, _suffix);
return newRegex;
};
PERIOD_NAME_REGEX.rightExtend = (suffix) => rightExtendRegEx(PERIOD_NAME_REGEX, suffix);

Expand Down

0 comments on commit 00e45bc

Please sign in to comment.