MCPcopy
hub / github.com/PanJiaChen/electron-vue-admin / isvalidUsername

Function isvalidUsername

src/renderer/utils/validate.js:5–8  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

3 */
4
5export function isvalidUsername(str) {
6 const valid_map = ['admin', 'editor']
7 return valid_map.indexOf(str.trim()) >= 0
8}
9
10/* 合法uri*/
11export function validateURL(textval) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected