Commits

Alex Suraci  committed 6070775

use new character syntax
Ignore-this: 8519573efac154bb5c1939d1185f3d2c

  • Participants
  • Parent commits 4822b3b

Comments (0)

Files changed (1)

     element-from: s attrs: as attr-mode: False
 
 element-from: selector attrs: as attr-mode: am := {
-    element = selector (split-on: '.') head (split-on: '#') head
-    classes = selector (split-on: '.') tail map: { c | c (split-on: '#') head }
-    id = selector (split-on: '#') tail map: { c | c (split-on: '.') head }
+    element = selector (split-on: $.) head (split-on: $#) head
+    classes = selector (split-on: $.) tail map: { c | c (split-on: $#) head }
+    id = selector (split-on: $#) tail map: { c | c (split-on: $.) head }
 
     when: classes empty? not
         do: { as = ("class" -> classes join: " ") >> as }