emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 0e99ccb 2/2: Fix punycode short circuit logic


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master 0e99ccb 2/2: Fix punycode short circuit logic
Date: Mon, 28 Dec 2015 18:14:00 +0000

branch: master
commit 0e99ccb32119882af50b37264cd4662db14b1e03
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Fix punycode short circuit logic
    
    * puny.el (puny-encode-domain): Fix short-circuit logic.
---
 lisp/net/puny.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/net/puny.el b/lisp/net/puny.el
index 389a6dc..a16e3a0 100644
--- a/lisp/net/puny.el
+++ b/lisp/net/puny.el
@@ -34,7 +34,7 @@
 For instance, \"fśf.org\" => \"xn--ff-2sa.org\"."
   ;; The vast majority of domain names are not IDNA domain names, so
   ;; add a check first to avoid doing unnecessary work.
-  (if (string-match "\\'[[:ascii:]]*\\'" domain)
+  (if (string-match "\\'[[:ascii:]]+\\'" domain)
       domain
     (mapconcat 'puny-encode-string (split-string domain "[.]") ".")))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]