Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

馃悰 Fixed search behaviour to not use RegExp #877

Merged
merged 1 commit into from Sep 28, 2017

Conversation

aileen
Copy link
Member

@aileen aileen commented Sep 28, 2017

closes TryGhost/Ghost#8959

  • Treated the search input as a literal string rather than RegExp to allow characters that need escaping in RegExp and disable RegExp characters like |.
  • Replaced any non-word characters in highlighted-text fn with escaped characters, so they're working with RegExp.

regex_search

closes TryGhost/Ghost#8959

- Treated the search input as a literal string rather than `RegExp` to allow characters that need escaping in `RegExp` and disable `RegExp` characterslike `|`.
- Replaced any non-word characters in `highlighted-text` fn with escaped characters, so they're working with `RegExp`.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.005%) to 72.345% when pulling 33f5db4 on AileenCGN:no-regex-in-search into 4e5fda2 on TryGhost:master.

@kevinansfield
Copy link
Collaborator

馃憤 LGTM 馃槃

@kevinansfield kevinansfield merged commit 6f107a8 into TryGhost:master Sep 28, 2017
@kevinansfield kevinansfield deleted the no-regex-in-search branch September 28, 2017 10:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants