fix(defs): prevent some RP false positives
This commit is contained in:
parent
ef3c198d4e
commit
e0ca8c575e
|
@ -21,10 +21,12 @@ namespace NoSoliciting.Tests.DefinitionsTests.Global {
|
||||||
// party finder
|
// party finder
|
||||||
new TestMessage("FC recruiting new and experienced players. Interested? Join party, send me a /tell or stop by the FC house for more information. "),
|
new TestMessage("FC recruiting new and experienced players. Interested? Join party, send me a /tell or stop by the FC house for more information. "),
|
||||||
new TestMessage(@"Golden Crow [FC] offering new and old players a save place to hang and have fun with - join the weebs now \o/ /pm for info "),
|
new TestMessage(@"Golden Crow [FC] offering new and old players a save place to hang and have fun with - join the weebs now \o/ /pm for info "),
|
||||||
|
new TestMessage("«ToC» recruiting active members. Join the party, send me a /Tell or stop by the FC house (Goblet P13, W19) for more information."),
|
||||||
});
|
});
|
||||||
|
|
||||||
public static object[][] DataNegatives => DefUtils.DataFromMessages(new TestMessage[] {
|
public static object[][] DataNegatives => DefUtils.DataFromMessages(new TestMessage[] {
|
||||||
new TestMessage("Static recruit. Not hardcore. Discord needed. tues-thurs 11:30pmEST. Join if you have questions."),
|
new TestMessage("Static recruit. Not hardcore. Discord needed. tues-thurs 11:30pmEST. Join if you have questions."),
|
||||||
|
new TestMessage("LF new LGBT friends to chill with in Eorzea! Join up, let's chat, and hang out. I have discord as well :)"),
|
||||||
});
|
});
|
||||||
|
|
||||||
[Theory]
|
[Theory]
|
||||||
|
|
|
@ -23,8 +23,16 @@ namespace NoSoliciting.Tests.DefinitionsTests.Global {
|
||||||
"Have a venue? Come plug yourself while checking us out! We're The - !! - https://discord.gg/S7BUVKh",
|
"Have a venue? Come plug yourself while checking us out! We're The - !! - https://discord.gg/S7BUVKh",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
public static object[][] DataNegatives => DefUtils.DataFromStrings(new string[] {
|
||||||
|
"«ToC» recruiting active members. Join the party, send me a /Tell or stop by the FC house (Goblet P13, W19) for more information.",
|
||||||
|
});
|
||||||
|
|
||||||
[Theory]
|
[Theory]
|
||||||
[MemberData(nameof(DataPositives))]
|
[MemberData(nameof(DataPositives))]
|
||||||
public void Positives(string msg) => this.Check(msg, CheckType.Positive);
|
public void Positives(string msg) => this.Check(msg, CheckType.Positive);
|
||||||
|
|
||||||
|
[Theory]
|
||||||
|
[MemberData(nameof(DataNegatives))]
|
||||||
|
public void Negatives(string msg) => this.Check(msg, CheckType.Negative);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
# slower but more flexible, and they are specified by using a regex
|
# slower but more flexible, and they are specified by using a regex
|
||||||
# key, as can be seen below.
|
# key, as can be seen below.
|
||||||
|
|
||||||
version: 26
|
version: 27
|
||||||
|
|
||||||
# This is the URL the plugin will POST reports to.
|
# This is the URL the plugin will POST reports to.
|
||||||
report_url: https://nosol.annaclemens.io/report
|
report_url: https://nosol.annaclemens.io/report
|
||||||
|
@ -179,7 +179,6 @@ global:
|
||||||
- music
|
- music
|
||||||
- contest
|
- contest
|
||||||
- giveaway
|
- giveaway
|
||||||
- party
|
|
||||||
- gambling
|
- gambling
|
||||||
- cosplay
|
- cosplay
|
||||||
- bounty
|
- bounty
|
||||||
|
@ -200,7 +199,7 @@ global:
|
||||||
# mentions free company
|
# mentions free company
|
||||||
- - fc
|
- - fc
|
||||||
- free company
|
- free company
|
||||||
- regex: '<\w+>'
|
- regex: '[<«]\w+[>»]'
|
||||||
# contains a call to action
|
# contains a call to action
|
||||||
- - join
|
- - join
|
||||||
- apply
|
- apply
|
||||||
|
@ -228,5 +227,6 @@ global:
|
||||||
- veteran
|
- veteran
|
||||||
- seasoned
|
- seasoned
|
||||||
- casual
|
- casual
|
||||||
- new
|
|
||||||
- help
|
- help
|
||||||
|
- regex: '\bold\b'
|
||||||
|
- regex: '\bvets?\b'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user