Skip to content

Commit e6c339b

Browse files
committed
Add Rewindv to EndingsNotToTrim
(cherry picked from commit 167ef88)
1 parent 2fa139f commit e6c339b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sources/SilkTouch/SilkTouch/Mods/MixKhronosData.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1499,19 +1499,21 @@ public bool TryGetSymbolMetadata(
14991499
/// while the lookbehind asserts that the ending match will not overreach into the end of a word.
15001500
/// </summary>
15011501
// NOTE: LET THIS BE A LESSON! Do NOT add x (fixed) here, these will frequently conflict with integer overloads.
1502-
[GeneratedRegex("(?<!xe)((?<!Rewin)[dhf]v?|u?[isb](64)?v?|v|i_v|fi|hi)$")]
1502+
[GeneratedRegex("(?<!xe)([fdh]v?|u?[isb](64)?v?|v|i_v|fi|hi)$")]
15031503
private static partial Regex EndingsToTrim();
15041504

15051505
/// <summary>
15061506
/// This regex acts like a whitelist for endings that could have been matched in some way by the main
15071507
/// expression, but should be exempt from trimming altogether.
15081508
/// </summary>
1509+
// Rewindv is to prevent Rewindv from being trimmed as Rewin
1510+
// TODO: Consider replacing this with something that prevents a list of words from being trimmed into instead of not being trimmed at all
15091511
[GeneratedRegex(
15101512
"(sh|ib|[tdrey]s|(?<![A-Z])[eE]n[vd]|bled|Attrib|Access|Boolean|Coord|Depth|Feedbacks|Finish|Flag|"
15111513
+ "Groups|IDs|Indexed|Instanced|Pixels|Queries|Status|Tess|Through|Uniforms|Varyings|Weight|Width|Bias|Id|"
15121514
+ "Fixed|Pass|Address|Configs|Thread|Subpass|Deferred|Extended|Affix|Annex|Box|Aux|Ex|Index|Vertex|Path|"
15131515
+ "Arch|Arith|Afresh|Both|High|Math|Mesh|Sinh|Bench|Brush|Bunch|Crash|Flush|Depth|Latch|Morph|Pinch|"
1514-
+ "Pitch|Stretch|Smooth|Matrix|Radix|Sound|Rewind|Supported)$"
1516+
+ "Pitch|Stretch|Smooth|Matrix|Radix|Sound|Supported|Rewind|Rewindv)$"
15151517
)]
15161518
private static partial Regex EndingsNotToTrim();
15171519

0 commit comments

Comments
 (0)