~sircmpwn/sr.ht-dev

lists.sr.ht: updates new tracker error message to specify that trackers must start with a letter v1 PROPOSED

Taowa: 1
 updates new tracker error message to specify that trackers must start with a letter

 1 files changed, 1 insertions(+), 1 deletions(-)
This is an invalid patch. Please send your patches only using git
send-email or the git.sr.ht patchset preparation UI:

https://git-send-email.io



          
          
          
        
      

      
      
      
      

      
      
        
          







Hello,

On Mon, May 25, 2020 at 10:16:33AM -0400, Drew DeVault wrote:
Next
The lists.sr.ht web interface is more tolerant of invalid patches than
git is, because it doesn't actually have to try to apply them to a
real-world repo. Use git send-email.
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/10778/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH lists.sr.ht] updates new tracker error message to specify that trackers must start with a letter Export this patch

---
 todosrht/types/tracker.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/todosrht/types/tracker.py b/todosrht/types/tracker.py
index 3a673b4..06a52fe 100644
--- a/todosrht/types/tracker.py
+++ b/todosrht/types/tracker.py
@@ -70,7 +70,7 @@ class Tracker(Base):
                "Must be between 1 and 255 characters",
                field="name")
        valid.expect(not valid.ok or name_re.match(name),
                "Only alphanumeric characters or ._-",
                "Only alphanumeric characters or ._-, must begin with a letter",
                field="name")
        valid.expect(not desc or len(desc) < 4096,
                "Must be less than 4096 characters",
-- 
2.27.0.rc0
This is an invalid patch. Please send your patches only using git
send-email or the git.sr.ht patchset preparation UI:

https://git-send-email.io