fix: actually set the correct regex

This commit is contained in:
Paul Makles
2022-05-09 23:08:17 +01:00
parent d7527d9131
commit de5428348c
3 changed files with 8 additions and 3 deletions

View File

@@ -1,3 +1,3 @@
#!/bin/bash
export version=0.5.3-1
export version=0.5.3-2
echo "pub const VERSION: &str = \"${version}\";" > src/version.rs

View File

@@ -1,4 +1,9 @@
use once_cell::sync::Lazy;
use regex::Regex;
pub static RE_USERNAME: Lazy<Regex> = Lazy::new(|| Regex::new(r"^[^\u200B]+$").unwrap());
/// Regex for valid usernames
///
/// Block zero width space
/// Block lookalike characters
pub static RE_USERNAME: Lazy<Regex> =
Lazy::new(|| Regex::new(r"^[^\u200BА-Яа-яΑ-Ωα-ω]+$").unwrap());

View File

@@ -1 +1 @@
pub const VERSION: &str = "0.5.3-1";
pub const VERSION: &str = "0.5.3-2";