Mercurial Hosting > luan
diff src/goodjava/lucene/queryparser/GoodQueryParser.java @ 1621:a9591906e608
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 25 Jul 2021 23:14:59 -0600 |
parents | 83caee2ed4ad |
children | b7f8418fb7ba |
line wrap: on
line diff
--- a/src/goodjava/lucene/queryparser/GoodQueryParser.java Sun Jul 25 18:59:23 2021 -0600 +++ b/src/goodjava/lucene/queryparser/GoodQueryParser.java Sun Jul 25 23:14:59 2021 -0600 @@ -27,6 +27,7 @@ s = s.replace("\r","\\r"); s = s.replace("\t","\\t"); s = s.replace("\"","\\\""); + s = s.replace("-","\\-"); return s; }