Skip to content

Commit

Permalink
Add Environment.NewLine to GetSearchableText
Browse files Browse the repository at this point in the history
  • Loading branch information
tnielsenskybruddk committed Jun 27, 2018
1 parent 797a563 commit 1d1b283
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ protected GridControlHtmlValue(GridControl control, JToken token) : base(control
/// </summary>
/// <returns>An instance of <see cref="System.String"/> with the value as a searchable text.</returns>
public override string GetSearchableText() {
return Regex.Replace(Value, "<.*?>", "");
return Regex.Replace(Value, "<.*?>", "") + Environment.NewLine;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ protected GridControlTextValue(GridControl control, JToken token) {
/// </summary>
/// <returns>An instance of <see cref="System.String"/> with the value as a searchable text.</returns>
public virtual string GetSearchableText() {
return Value;
return Value + Environment.NewLine;
}

/// <summary>
Expand Down
3 changes: 2 additions & 1 deletion src/Skybrud.Umbraco.GridData/Values/GridControlValueBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Newtonsoft.Json.Linq;
using Skybrud.Umbraco.GridData.Interfaces;
using Skybrud.Umbraco.GridData.Json;
using System;

namespace Skybrud.Umbraco.GridData.Values {

Expand Down Expand Up @@ -46,7 +47,7 @@ protected GridControlValueBase(GridControl control, JObject obj) : base(obj) {
/// </summary>
/// <returns>An instance of <see cref="System.String"/> with the value as a searchable text.</returns>
public virtual string GetSearchableText() {
return "";
return Environment.NewLine;
}

#endregion
Expand Down

0 comments on commit 1d1b283

Please sign in to comment.