T06g forms structure: form with Cmd-Enter submit, sections, fields, labels, errors, field arrays, inline forms, dirty indicator

This commit is contained in:
ZacharyZhang-NY committed 2026-09-25 10:46:27 -04:00
1 parent 0ca1ff65c7
commit 05ff67ad9f
13 files changed
+850 -78

No files matched your search

+4 -2
View File
@@ -18,11 +18,13 @@ static URL: LazyLock<Regex> = LazyLock::new(|| {
Regex::new(r"^https?://[^\s/?#]+\.[^\s/?#]+\S*$").expect("url pattern compiles")
});
pub(crate) fn is_email(text: &str) -> bool {
/// Whether `text` reads as one email address.
pub fn is_email(text: &str) -> bool {
EMAIL.is_match(text)
}
pub(crate) fn is_url(text: &str) -> bool {
/// Whether `text` reads as a web link.
pub fn is_url(text: &str) -> bool {
URL.is_match(text)
}