Add find PIS by code functionality
Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
@@ -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,
|
||||
};
|
||||
Reference in New Issue
Block a user