Opened 2 years ago

Closed 13 months ago

Last modified 2 months ago

#150 closed enhancement (wontfix)

Strip leading and trailing spaces in Search Term

Reported by: zodiac1978 Owned by: somebody
Priority: major Milestone:
Component: general Version:
Keywords: has-patch Cc: nbachiyski

Description

If you search for a term it should strip the leading and tailing spaces.

Because if you copy the string into the input box you maybe don't see the leading or tailing space and you are wondering about why you don't find the string, although it is there.

Attachments (1)

150.diff (1.8 KB) - added by nacin 14 months ago.

Download all attachments as: .zip

Change History (6)

nacin14 months ago

  • Keywords needs-unit-tests has-patch commit added
  • Keywords 2nd-opinion added

This could make it more difficult to search against word boundaries, however.

  • Keywords needs-unit-tests commit 2nd-opinion removed
  • Resolution set to wontfix
  • Status changed from new to closed

GlotPress does literal search. It's not ideal, but let's not try to patch in weird ways.

zodiac1978, I am sure you now know that leading/trailing space might be a problem and will check for it :-)

  • Cc nbachiyski added

@nbachiyski: Okay! :-)

Note: See TracTickets for help on using tickets.