aboutsummaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authorJJ2024-07-19 00:45:46 +0000
committerJJ2024-07-19 00:45:46 +0000
commit64fc715866d1647c7fe157fe49fee4276b7d9f4c (patch)
tree8f32b14287554119c24fe4720c2474e1ec39197a /frontend
parent26847d82fc87698889eb827ac9f62cd01cd03e69 (diff)
add descriptions to regex stuff on hover
Diffstat (limited to 'frontend')
-rw-r--r--frontend/src/components/panels/RulesPane.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/frontend/src/components/panels/RulesPane.js b/frontend/src/components/panels/RulesPane.js
index eb424c7..b3d2bdd 100644
--- a/frontend/src/components/panels/RulesPane.js
+++ b/frontend/src/components/panels/RulesPane.js
@@ -174,7 +174,7 @@ class RulesPane extends Component {
valid = false;
}
if (rule.patterns.length < 1) {
- this.setState({ rulePatternsError: "patterns.length < 1" });
+ this.setState({ rulePatternsError: "no patterns added" });
valid = false;
}
@@ -433,14 +433,14 @@ class RulesPane extends Component {
<thead>
<tr>
<th>regex</th>
- <th>!Aa</th>
- <th>.*</th>
- <th>\n+</th>
- <th>UTF8</th>
- <th>Uni_</th>
- <th>min</th>
- <th>max</th>
- <th>direction</th>
+ <th title="Set case-insensitive matching">!Aa</th>
+ <th title="Matching a `.` will not exclude newlines">.*</th>
+ <th title="Set multi-line anchoring">\n+</th>
+ <th title="Enable UTF-8 mode for this expression">UTF8</th>
+ <th title="Enable Unicode property support for this expression">Uni_</th>
+ <th title="Set minimum occurences">min</th>
+ <th title="Set maximum occurences">max</th>
+ <th title="Match conversation direction">direction</th>
{!isUpdate && <th>actions</th>}
</tr>
</thead>
@@ -455,9 +455,9 @@ class RulesPane extends Component {
<div className="section-footer">
{<ButtonField variant="red" name="cancel" bordered onClick={this.reset} />}
+ { isUpdate && <ButtonField variant="red" name="delete_rule" bordered onClick={this.deleteRule} />}
<ButtonField variant={isUpdate ? "blue" : "green"} name={isUpdate ? "update_rule" : "add_rule"}
bordered onClick={isUpdate ? this.updateRule : this.addRule} />
- <ButtonField variant="red" name="delete_rule" bordered onClick={this.deleteRule} />
</div>
</div>
</div>