Time Units Validate

English! place to talk about development, programming and coding
Post Reply
MichaelR
Znuny expert
Posts: 250
Joined: 12 Oct 2010, 01:35
Znuny Version: 3.0.9
Company: LRS Health

Time Units Validate

Post by MichaelR »

G'Day

One of our agents found something today, when entering time units, I cannot enter enter '.75' as it is invalid time. Whereas '0.75' is a valid time.

The particular string that determines if it is right is: /^-{0,1}\d+?((\.|,){0,1}\d+?){0,1}$/

Can someone have a look at it and see if they can modify it to allow for '.' at the start of the string? My regex uberness is not up to it today.
OTRS: 3.0.9 & ITSM 3.0.4 - OS: Windows 7 - DB: MySQL - Heaps of random/useful hacks :)
[Major Code Changes]
ArticleFreeTime1-3
Ability to search ArticleFreeText
Post Reply