From: SourceForge.net <no...@so...> - 2007-06-26 04:56:40
|
Bugs item #1680081, was opened at 2007-03-13 19:31 Message generated for change (Settings changed) made by didierbr You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=520347&aid=1680081&group_id=68187 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Application Group: 1.6 Status: Open Resolution: Fixed Priority: 5 Private: No Submitted By: Didier Briel (didierbr) >Assigned to: tiago (klain) Summary: Search: simple wilcards do not work Initial Comment: In Search, it was possible to use simple wildcards (* and ?). Since (I believe) the possibility to use regexps was introduced, it seems the simple wildcards (when not in regexp mode) do not work anymore. Didier ---------------------------------------------------------------------- Comment By: Didier Briel (didierbr) Date: 2007-06-04 14:00 Message: Logged In: YES user_id=1343245 Originator: YES Fixed in CVS. The correction was contributed by Tiago Saboga. Copy of the message in OmTdev: Here is the patch: # This patch file was generated by NetBeans IDE # Following Index: paths are relative to: /home/tiago/src/omegat-cvs/omegat/src/org/omegat/util # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: StaticUtils.java *** /home/tiago/src/omegat-cvs/omegat/src/org/omegat/util/StaticUtils.java Base (1.56) --- /home/tiago/src/omegat-cvs/omegat/src/org/omegat/util/StaticUtils.java Locally Modified (Based On 1.56) *************** *** 759,766 **** else { // convert * (0 or more characters) and ? (0 or 1 character) // to their regex equivalents (\S* and \S? respectively) ! text = text.replaceAll("\\?", "\\S?"); // do ? first, or * will be converted twice ! text = text.replaceAll("\\*", "\\S*"); } return text; --- 759,766 ---- else { // convert * (0 or more characters) and ? (0 or 1 character) // to their regex equivalents (\S* and \S? respectively) ! text = text.replaceAll("\\?", "\\\\S?"); // do ? first, or * will be converted twice ! text = text.replaceAll("\\*", "\\\\S*"); } return text; ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=520347&aid=1680081&group_id=68187 |