mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 14:04:20 +01:00
Add examples for regex flags (#1716)
* Adds examples for regex flags in the flag creation form
This commit is contained in:
@@ -11,4 +11,27 @@
|
|||||||
<option value="case_insensitive">Case Insensitive</option>
|
<option value="case_insensitive">Case Insensitive</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label>Examples</label>
|
||||||
|
<table class="table small">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th scope="col">Description</th>
|
||||||
|
<th scope="col">Flag</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tr>
|
||||||
|
<td>Match any content inside of flag{}:</td>
|
||||||
|
<td><code>flag{.*}</code></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Match numeric flags:</td>
|
||||||
|
<td><code>flag{(\d+)}</code></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Accept flags with or without the flag format prefix:</td>
|
||||||
|
<td><code>(flag{)?this_is_a_flag(})?</code></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
<input type="hidden" name="type" value="regex">
|
<input type="hidden" name="type" value="regex">
|
||||||
Reference in New Issue
Block a user