Numbertext / libnumbertext

Number to number name and money text conversion libraries in C++, Java, JavaScript and Python & LibreOffice Calc Extension
BSD 3-Clause "New" or "Revised" License
67 stars 46 forks source link

Changed the Bulgarian module to avoid using \d and \D #48

Closed mbalabanov75 closed 5 years ago

mbalabanov75 commented 5 years ago

The Bulgarian module did not work in LibreOffice. When I investigated, it turned out that \d and \D are apparently not supported by the regex engine used in LO under Windows, so I expanded them to [0-9] and [^0-9] respectively. The module now appears to work correctly (tested both in Calc and in Writer).

laszlonemeth commented 5 years ago

Thanks for your bug report and patch. Likely the solution will be replacing \d, \D with their portable equivalent [0-9], [^0-9]...