Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export default function validateInputField(input) {
- if(input.length > 0 && input?.includes('(')) return false;
- if(input.length > 0 && input?.includes(')')) return false;
- if(input.length > 0 && input?.includes(';')) return false;
- if(input.length > 0 && input?.includes('{')) return false;
- if(input.length > 0 && input?.includes('}')) return false;
- if(input.length > 0 && input?.includes('-r')) return false;
- if(input.length > 0 && input?.includes('-f')) return false;
- if(input.length > 0 && input?.includes(" ' ")) return false;
- return true;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement