diff --git a/Lombiq.DataTables/Assets/Scripts/lombiq-datatables.js b/Lombiq.DataTables/Assets/Scripts/lombiq-datatables.js index 9ee24abc3..dfabcdf0c 100644 --- a/Lombiq.DataTables/Assets/Scripts/lombiq-datatables.js +++ b/Lombiq.DataTables/Assets/Scripts/lombiq-datatables.js @@ -21,7 +21,7 @@ lengthChange: true, scrollX: true, dom: "<'row dataTables_buttons'<'col-md-12'B>>" + - "<'row dataTables_controls'<'col-md-6 dataTables_length'l><'col-md-6 dataTables_search'f>>" + + "<'row dataTables_controls'<'col-md-6 dataTables_length'l><'col-md-6 dataTables_search'f>>" + // #spell-check-ignore-line "<'row dataTables_content'<'col-md-12't>>" + "<'row dataTables_footer'<'col-md-12'ip>>", buttons: useDefaultButtons, diff --git a/Lombiq.DataTables/ResourceManagementOptionsConfiguration.cs b/Lombiq.DataTables/ResourceManagementOptionsConfiguration.cs index 0e9452bf9..1e5d642c9 100644 --- a/Lombiq.DataTables/ResourceManagementOptionsConfiguration.cs +++ b/Lombiq.DataTables/ResourceManagementOptionsConfiguration.cs @@ -90,7 +90,7 @@ static ResourceManagementOptionsConfiguration() _manifest .DefineScript(ResourceNames.DataTables.AutoInit) .SetDependencies(ResourceNames.DataTables.Bootstrap4, ResourceNames.DataTables.Bootstrap4Buttons) - .SetUrl(Lombiq + "jquery-datatables-autoinit.js") + .SetUrl(Lombiq + "jquery-datatables-autoinit.js") // #spell-check-ignore-line .SetVersion("1.0"); _manifest diff --git a/Lombiq.DataTables/Services/DataTableDataProviderBase.cs b/Lombiq.DataTables/Services/DataTableDataProviderBase.cs index 4c874d183..f8fb2c0a0 100644 --- a/Lombiq.DataTables/Services/DataTableDataProviderBase.cs +++ b/Lombiq.DataTables/Services/DataTableDataProviderBase.cs @@ -94,7 +94,8 @@ protected static IEnumerable SubstituteByColumn( .ToDictionary( cell => cell.Name, cell => cell.Regex is { } regex - ? new JValue(cell.Token?.ToString().RegexReplace(regex.From, regex.To, RegexOptions.Singleline) ?? string.Empty) + ? new JValue(cell.Token?.ToString().RegexReplace(regex.From, regex.To, RegexOptions.Singleline) // #spell-check-ignore-line + ?? string.Empty) : cell.Token))); protected async Task RenderLiquidAsync(IEnumerable rowList, IList liquidColumns) diff --git a/Lombiq.DataTables/Tests/Lombiq.DataTables.Tests/UnitTests/Services/LiquidTests.cs b/Lombiq.DataTables/Tests/Lombiq.DataTables.Tests/UnitTests/Services/LiquidTests.cs index ef09c8f9f..8246449c2 100644 --- a/Lombiq.DataTables/Tests/Lombiq.DataTables.Tests/UnitTests/Services/LiquidTests.cs +++ b/Lombiq.DataTables/Tests/Lombiq.DataTables.Tests/UnitTests/Services/LiquidTests.cs @@ -108,7 +108,7 @@ public static IEnumerable Data() new[] { ("Num||^.*$||{{ '$0' | date: '%m/%d/%Y' }}", "Dates", true), - ("Cls||^.*$||{{ '$0' | downcase }}", "Magic Words", true), + ("Cls||^.*$||{{ '$0' | downcase }}", "Magic Words", true), // #spell-check-ignore-line }, $"{today},foo bar baz;01/01/1970,lorem ipsum dolor sit amet;12/31/2020,the quick brown fox" .Split(';') diff --git a/Lombiq.DataTables/Views/Lombiq.DataTable.cshtml b/Lombiq.DataTables/Views/Lombiq.DataTable.cshtml index d62d3ea38..9bb181c4d 100644 --- a/Lombiq.DataTables/Views/Lombiq.DataTable.cshtml +++ b/Lombiq.DataTables/Views/Lombiq.DataTable.cshtml @@ -101,7 +101,7 @@ $(function () { var templates = {}; $(".@templatesElementName > div[data-id]").each(function(index, element) { - templates[element.getAttribute('data-id')] = element.innerHTML.replace(/%7B%7Bdata%7D%7D/g, '@templatePlaceholder'); + templates[element.getAttribute('data-id')] = element.innerHTML.replace(/%7B%7Bdata%7D%7D/g, '@templatePlaceholder'); // #spell-check-ignore-line element.parentElement.removeChild(element); });