Skip to content

Commit

Permalink
Remove regex requirement (#88)
Browse files Browse the repository at this point in the history
* A good regex parser is not lightweight and most likely needs lots of heap memory for the state machine and backreferences and whatnot. Do not make it mandatory to support it.
* Be more precise when the property format attribute is required
David Gräff authored and marvinroger committed Apr 29, 2018
1 parent 5cbe5ee commit 081214d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -496,10 +496,6 @@ A property attribute MUST be one of these:
Escape <code>,</code> by using <code>,,</code>. e.g. <code>A,B,C</code> or <code>ON,OFF,PAUSE</code>.
<br>Valid for datatypes <code>enum</code>
</li>
<li>
<code>regex:pattern</code> to provide a regex that can be used to match the value. e.g. <code>regex:[A-Z][0-9]+</code>.
<br>Valid for datatype <code>string</code>
</li>
<li>
<code>rgb</code> to provide colors in RGB format e.g. <code>255,255,0</code> for yellow.
<code>hsv</code> to provide colors in HSV format e.g. <code>60,100,100</code> for yellow.
@@ -508,7 +504,7 @@ A property attribute MUST be one of these:
</ul>
</td>
<td>Yes</td>
<td>Depends on $datatype</td>
<td>No for $datatype <code>string</code>,<code>integer</code>,<code>float</code>,<code>boolean</code>. Yes for <code>enum</code>,<code>color</code></td>
</tr>
</table>

0 comments on commit 081214d

Please sign in to comment.