Add tól to list of handled suffixes in NodaTimeSplitter
"tól" is a suffix equivalent to "after" in Hungarian.
This commit is contained in:
parent
d28618bb14
commit
a4be5e876c
@ -113,6 +113,7 @@ final class NodaTimeSplitter {
|
||||
"eleje",
|
||||
"között",
|
||||
"töl",
|
||||
"tól",
|
||||
"januárig",
|
||||
"februárig",
|
||||
"márciusig",
|
||||
@ -824,7 +825,7 @@ final class NodaTimeSplitter {
|
||||
}
|
||||
|
||||
// Endings beginning with a space
|
||||
if (\preg_match("/(\-től)$/", $datum)) {
|
||||
if (\preg_match("/(\-től|\-tól)$/", $datum)) {
|
||||
if (($spacePos = strrpos($datum, "-")) === false) {
|
||||
return [];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user