Compare commits

...
1 Commits
Author SHA1 Message Date
Paul Makles de5428348c fix: actually set the correct regex 2022-05-09 23:08:17 +01:00
3 changed files with 8 additions and 3 deletions

No files matched your search

+1 -1
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
+6 -1
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());
+1 -1
View File
@@ -1 +1 @@
pub const VERSION: &str = "0.5.3-1";
pub const VERSION: &str = "0.5.3-2";