mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-26 23:05:00 +03:00
10 lines
197 B
JavaScript
10 lines
197 B
JavaScript
import { isNumber } from 'lodash';
|
|
|
|
export const isCommunity = (text) => {
|
|
if (/hive-[1-3]\d{4,6}$/.test(text) && isNumber(Number(text.split('-')[1]))) {
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
};
|