File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/main/java/tla/backend/es/query Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -146,14 +146,17 @@ public String maskRegExTranscription(String transcription) {
146146 transcription = transcription .replace ("⸮" , "" );
147147 // "?", "[" , and "]" are part of allowed RegEx syntax
148148
149- // BTS wildcards (any sign)
149+ // leagacy TLA wildcards
150150 transcription = transcription .replace ("§" , "." ); // "§" in legacyTLA
151- transcription = transcription .replace ("*" , "." ); // "*" new in newTLA
151+
152+ // Usual wildcards
153+ transcription = transcription .replace ("_" , "." ); // any sigle sign
154+ transcription = transcription .replace ("*" , ".*" ); // zero or more signs
152155
153156 // treatment of right end
154157 if (transcription .endsWith ("$" )) { // "$": wirkliches String-Ende
155158 transcription = transcription .replace ("$" , "" ); // remove "$" (all, just to be sure)
156- } else {
159+ } else if (! transcription . endsWith ( ".*" )) { // redundant if already ends with ".*"
157160 transcription = transcription + ".*" ; // right: any signs may follow
158161 }
159162
You can’t perform that action at this time.
0 commit comments