fix attempt on buggy player search

This commit is contained in:
2021-11-16 13:19:13 +01:00
parent 7130c13ac4
commit bd8cf4a3c3
4 changed files with 49 additions and 18 deletions

View File

@@ -104,12 +104,7 @@ export default {
})
}
if (vanityPattern.test(store.state.vanityUrl)) {
store.commit({
type: 'changeVanityUrl',
id: input
})
} else {
if (store.state.vanityUrl && !vanityPattern.test(store.state.vanityUrl)) {
data.error = 'Only alphanumeric symbols, "_", and "-", between 3-32 characters'
store.commit({
type: 'changeVanityUrl',
@@ -202,9 +197,9 @@ nav {
max-width: 100vw;
height: 70px;
width: 100vw;
background: rgba(16, 18, 26, 1);
background: rgba(16, 18, 26, .9);
box-shadow: 0 1px 10px 0 #111;
z-index: 2;
ul {
display: flex;