From 63ebf4328b260219308587a040fc5a2ab6b5b9d8 Mon Sep 17 00:00:00 2001 From: rv871f Date: Mon, 24 Sep 2018 16:15:32 -0400 Subject: Escaping regex characters Issue-ID: AAI-1672 Change-Id: I47d50fbcfac453baf314d789ed9a4f32e9656330 Signed-off-by: rv871f --- .../autoCompleteSearchBar/AutoCompleteSearchBar.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/generic-components/autoCompleteSearchBar') diff --git a/src/generic-components/autoCompleteSearchBar/AutoCompleteSearchBar.jsx b/src/generic-components/autoCompleteSearchBar/AutoCompleteSearchBar.jsx index 4f93125..47cdc9a 100644 --- a/src/generic-components/autoCompleteSearchBar/AutoCompleteSearchBar.jsx +++ b/src/generic-components/autoCompleteSearchBar/AutoCompleteSearchBar.jsx @@ -164,7 +164,8 @@ export default class AutoCompleteSearchBar extends Component { + textToHighlight={suggestionTextArray[arrayIndex]} + autoEscape={true}/> { ++arrayIndex ? ' ' : ' '} ); @@ -185,7 +186,8 @@ export default class AutoCompleteSearchBar extends Component { + textToHighlight={suggestionTextArray[arrayIndex]} + autoEscape={true}/> { ++arrayIndex ? ' ' : ' '} ); -- cgit 1.2.3-korg