(str)
| 3 | */ |
| 4 | |
| 5 | export function isvalidUsername(str) { |
| 6 | const valid_map = ['admin', 'editor'] |
| 7 | return valid_map.indexOf(str.trim()) >= 0 |
| 8 | } |
| 9 | |
| 10 | /* 合法uri*/ |
| 11 | export function validateURL(textval) { |
nothing calls this directly
no outgoing calls
no test coverage detected