Commit b47345b
committed
refactor: simplify print_url, the url( prefix check is always true
A Url node's text always starts with url( (any casing) by
construction -- that's what makes the parser tag it as a Url node in
the first place, confirmed empirically across url(), URL(), quoted
and unquoted forms. The regex test guarding the slice was dead code.1 parent 6fb1237 commit b47345b
1 file changed
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
97 | 98 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 99 | + | |
103 | 100 | | |
104 | 101 | | |
105 | 102 | | |
| |||
0 commit comments