Skip to content

Commit

Permalink
Add additional cases to regEx
Browse files Browse the repository at this point in the history
  • Loading branch information
samleeflang committed Nov 20, 2024
1 parent d0e2490 commit a6b0820
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@Slf4j
public abstract class AbstractMeterTerm extends Term {

private static final Pattern M_PATTERN = Pattern.compile("((-\\s?)?\\d+([.,]\\d+)?)\\s*m\\.?(eter)?(tr)?(\\sm.?)?");
private static final Pattern M_PATTERN = Pattern.compile("((-\\s?)?\\d+([.,]\\d+)?)\\s*m\\.?(eter)?(tr?.?)?(\\sm.?)?");

protected String sanitizeInput(String input) {
if (input == null) {
Expand Down

0 comments on commit a6b0820

Please sign in to comment.