Skip to content

Commit

Permalink
Bumped version number
Browse files Browse the repository at this point in the history
  • Loading branch information
veler committed Sep 18, 2022
1 parent 7343fc4 commit 5a8c0a5
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 20 deletions.
15 changes: 7 additions & 8 deletions src/dev/impl/DevToys/Assets/ReleaseNote.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
🎉 New Features
• CRON Parser!
• XML Validator!
• Color Picker & Contrast!
• JWT Decoder can now also Encode!
👏 Improvements
• Added and updated many translations
• New option in JSON Formatter, Hash Generator and Settings
• Consistent font everywhere
• Start-up performance
• Regex Tester shows matching groups
• Better handling of brackets in SQL Formatter
• Smart Detection now prioritize favorite tools
🐛 Bug Fixes
• Inconsistencies in YAML to JSON Converter and JSON Formatter
• JSON Formatter wasn't sorting arrays
• JSON Formatter was failing to parse an empty array
• Wrong highlighting in Regex Tester
15 changes: 15 additions & 0 deletions src/dev/impl/DevToys/LanguageManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2427,6 +2427,21 @@ public class RegExStrings : ObservableObject
/// Gets the resource OutputTitle.
/// </summary>
public string OutputTitle => _resources.GetString("OutputTitle");

/// <summary>
/// Gets the resource Group.
/// </summary>
public string Group => _resources.GetString("Group");

/// <summary>
/// Gets the resource Match.
/// </summary>
public string Match => _resources.GetString("Match");

/// <summary>
/// Gets the resource Matches.
/// </summary>
public string Matches => _resources.GetString("Matches");
}

public class SearchResultStrings : ObservableObject
Expand Down
9 changes: 9 additions & 0 deletions src/dev/impl/DevToys/Strings/en-US/RegEx.resw
Original file line number Diff line number Diff line change
Expand Up @@ -192,4 +192,13 @@
<data name="OutputTitle" xml:space="preserve">
<value>Output</value>
</data>
<data name="Group" xml:space="preserve">
<value>Group</value>
</data>
<data name="Match" xml:space="preserve">
<value>Match</value>
</data>
<data name="Matches" xml:space="preserve">
<value>Matches</value>
</data>
</root>
2 changes: 1 addition & 1 deletion src/dev/impl/DevToys/UI/Controls/CustomTextBox.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ private void ExecuteSelectAllCommand()

public void SetHighlights(IEnumerable<HighlightSpan>? spans)
{
_highlightedSpans = spans;
_highlightedSpans = spans ?? Array.Empty<HighlightSpan>();

if (!IsRichTextEdit)
{
Expand Down
2 changes: 1 addition & 1 deletion src/dev/impl/DevToys/UI/Controls/ICustomTextBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace DevToys.UI.Controls
{
public interface ICustomTextBox
{
void SetHighlights(IEnumerable<HighlightSpan> spans);
void SetHighlights(IEnumerable<HighlightSpan>? spans);

void ScrollToBottom();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ internal string? ErrorMsg
}
}

internal ExtendedObservableCollection<MatchDetails2> MatchGroups { get; } = new();
internal ExtendedObservableCollection<MatchDetails> MatchGroups { get; } = new();

private string? _inputValue;
internal string? InputValue
Expand Down Expand Up @@ -311,16 +311,16 @@ await ThreadHelper.RunOnUIThreadAsync(() =>
{
MatchTextBox?.SetHighlights(spans);
IEnumerable<MatchDetails2> matchesGroups
IEnumerable<MatchDetails> matchesGroups
= matches
.Cast<Match>()
.SelectMany(
(c, inx) => c.Groups
.Cast<Group>()
.OrderBy(g => g.Index)
.Select(mm => new MatchDetails2
.Select(mm => new MatchDetails
{
Title = (mm.Name == "0" ? $"Match {inx + 1}:" : $" Group \"{mm.Name}\""),
Title = (mm.Name == "0" ? $"{Strings.Match} {inx + 1}:" : $" {Strings.Group} \"{mm.Name}\""),
Range = $"{mm.Index}-{mm.Index + mm.Length}",
Value = mm.Value
}));
Expand Down Expand Up @@ -406,10 +406,12 @@ private int CountLines(string input, int maxLength)
}
}

public record MatchDetails2
public record MatchDetails
{
public string Title { get; set; }
public string Range { get; set; }
public string Value { get; set; }
public string Title { get; set; } = string.Empty;

public string Range { get; set; } = string.Empty;

public string Value { get; set; } = string.Empty;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
Text="{x:Bind Mode=TwoWay, Path=ViewModel.Text, UpdateSourceTrigger=PropertyChanged}" />

<StackPanel Grid.Row="4" Spacing="4">
<TextBlock Style="{StaticResource SubTitleTextBlock}" Text="Matches" />
<TextBlock Style="{StaticResource SubTitleTextBlock}" Text="{x:Bind Path=ViewModel.Strings.Matches}" />

<Grid
Grid.Row="4"
Expand Down
2 changes: 1 addition & 1 deletion tools/app-version-number.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.9.0
1.0.10.0

0 comments on commit 5a8c0a5

Please sign in to comment.