Commit 2dfffb3
committed
Fix error for client-side parser by improving regex
For the client parser, when the first element of the HTML string
has attributes, the regex will improperly capture everything and
make the tag name invalid.
The fix is to ensure only the tag name is matched and whitespace
is trimmed.
Fixes #231 parent 1774d2c commit 2dfffb3
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
111 | | - | |
| 112 | + | |
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
| |||
0 commit comments