Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

handle identifiers that contain unicode letters

  • Loading branch information...
commit 02bc35cf84e963ae12e57c61ce0976ef7d6929c1 1 parent d70fb07
Mihai Bazon authored
2  cl-uglify-js.asd
... ...
@@ -1,7 +1,7 @@
1 1
 (asdf:defsystem #:cl-uglify-js
2 2
   :description "JavaScript compressor/beautifier on top of PARSE-JS"
3 3
   :author "Mihai Bazon <mihai.bazon@gmail.com>"
4  
-  :depends-on (#:parse-js #:cl-ppcre #:parse-number #:iterate)
  4
+  :depends-on (#:parse-js #:cl-ppcre #:cl-ppcre-unicode #:parse-number #:iterate)
5 5
   :components
6 6
   ((:module "src" :serial t
7 7
             :components ((:file "package")
2  src/constants.lisp
@@ -87,7 +87,7 @@
87 87
   (defun is-identifier (name)
88 88
     (declare (inline is-identifier))
89 89
     (and (not (gethash name hash))
90  
-         (ppcre:scan "^[a-zA-Z_$][a-zA-Z0-9_$]*$" name))))
  90
+         (ppcre:scan "^(\\p{Letter}|[_$])(\\p{Letter}|[0-9_$])*$" name))))
91 91
 
92 92
 (defun curry (func &rest a1)
93 93
   (lambda (&rest a2)

0 notes on commit 02bc35c

Please sign in to comment.
Something went wrong with that request. Please try again.