New paste Use cases Explore public pastes Text tools Developer API The Paste Library Security Sign in with Google
DIFFExample pasteCreated 2026-07-301 viewNo expiry

Example validation bug fix

Raw New paste
diffRead-only
1
diff --git a/validator.py b/validator.py
index 5ef21ab..98a341c 100644
--- a/validator.py
+++ b/validator.py
@@ -8,5 +8,7 @@ def validate_name(value):
-    if len(value) > 80:
+    value = value.strip()
+    if not value:
+        raise ValueError("name is required")
+    if len(value) > 80:
         raise ValueError("name is too long")
     return value
Report abuse

Paste details

Visibility
Public
Size
356 bytes
Protection
Standard link access
Retention
No automatic expiry

Share with confidence

Unlisted links are not searchable, but anyone with the URL can open them. Never paste live credentials or personal data.