Add find PIS by code functionality

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface
2023-05-24 20:42:32 +01:00
parent b119f126b9
commit 11ece9c80e
4 changed files with 31 additions and 3 deletions

View File

@@ -8,6 +8,10 @@ function removeNonAlpha(inputString) { // Should be able to replace sanitizer m
return inputString.replace(/[^a-zA-Z]/g, '');
}
function removeNonNumeric(inputString) {
return inputString.replace(/[^0-9]/g, '');
}
const cleanApiEndpointTxt = removeNonAlpha;
const cleanApiEndpointNum = removeNonAlphanumeric;
@@ -26,6 +30,7 @@ module.exports = {
cleanApiEndpointNum,
removeNonAlpha,
removeNonAlphanumeric,
removeNonNumeric,
cleanNrcc,
getDomainFromEmail,
};