1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-07-19 22:18:03 +00:00

Find view: paste ID and press Enter (fixes #55)

This commit is contained in:
2023-07-08 13:17:30 +02:00
parent 5476df5fe9
commit 6027ab155a
2 changed files with 13 additions and 2 deletions

View File

@ -22,3 +22,10 @@ export function looseJsonIsValid(json) {
return false;
}
}
export function stringCouldBeID(string) {
if (looseJsonIsValid(string)) {
return false;
}
return /^[a-zA-Z0-9_-]{1,}$/.test(string);
}