forked from jmug/stoatchat
fix: actually set the correct regex
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
export version=0.5.3-1
|
export version=0.5.3-2
|
||||||
echo "pub const VERSION: &str = \"${version}\";" > src/version.rs
|
echo "pub const VERSION: &str = \"${version}\";" > src/version.rs
|
||||||
|
|||||||
@@ -1,4 +1,9 @@
|
|||||||
use once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
use regex::Regex;
|
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());
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
pub const VERSION: &str = "0.5.3-1";
|
pub const VERSION: &str = "0.5.3-2";
|
||||||
|
|||||||
Reference in New Issue
Block a user