ecency-mobile/src/utils/communityValidation.js

8 lines
134 B
JavaScript
Raw Normal View History

2020-12-11 23:56:00 +03:00
export const isCommunity = (text) => {
if (/^hive-\d+/.test(text) && text.length === 11) {
return true;
}
return false;
};