Skip to content

Commit 09ed297

Browse files
committed
Report leading asterisks
1 parent e740c29 commit 09ed297

4 files changed

Lines changed: 11 additions & 2 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "StandardsValidator"
3-
version = "2.22.0"
3+
version = "2.23.0"
44
edition = "2021"
55

66
[dependencies]

WARNINGS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,9 @@ which means it's impossible to determine which indefinite article (a/an) to use.
237237
### Contains leading/trailing whitespace
238238
Leading whitespace is visible in game. Trailing whitespace is bloat.
239239

240+
### Starts with an asterisk
241+
The CS marks modified dialogue with `*` and lets you jump to it by pressing that key. Starting responses with `*` makes it harder to jump to any modified dialogue.
242+
240243
## Contains odd orc name
241244
Orc surnames start with `gro-` or `gra-`. With a lower case G and a capital after the hyphen.
242245

src/validators/dialogue.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,12 @@ impl Handler<'_> for DialogueValidator {
117117
record.id, topic.id
118118
);
119119
}
120+
if text.starts_with('*') {
121+
println!(
122+
"Info {} in topic {} starts with an asterisk",
123+
record.id, topic.id
124+
);
125+
}
120126
}
121127
for filter in &record.filters {
122128
let value = get_int(filter.value);

0 commit comments

Comments
 (0)