Skip to content

Commit c0f711e

Browse files
committed
findOneOf doesn't work on lucee
1 parent 037ac37 commit c0f711e

File tree

3 files changed

+32
-4
lines changed

3 files changed

+32
-4
lines changed

system/async/time/DateTimeHelper.cfc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,8 @@ component singleton {
294294
*/
295295
string function validateTime( required string time ){
296296
if ( !reFind( "^([0-1][0-9]|[2][0-3])\:[0-5][0-9]$", arguments.time ) ) {
297-
if ( arguments.time.toString().findOneOf( ":" ) > 0 ) {
297+
298+
if ( findOneOf( arguments.time.toString(), ":" ) > 0 ) {
298299
throw(
299300
message = "Invalid time representation (#arguments.time#). Time is represented in 24 hour minute format => HH:mm",
300301
type = "InvalidTimeException"

tests/tmp/Person.cfc

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/**
2+
* We use this class for testing serializations
3+
*/
4+
component accessors="true"{
5+
6+
property String name;
7+
property String surname;
8+
property numeric age;
9+
property Date createdDate;
10+
property Date modifiedDate;
11+
property boolean isActive;
12+
property test;
13+
property system;
14+
15+
function init(){
16+
variables.name = "John";
17+
variables.surname = "Doe";
18+
variables.age = 30;
19+
variables.createdDate = now();
20+
variables.modifiedDate = now();
21+
variables.isActive = true;
22+
variables.test = new User();
23+
24+
variables.system = createObject( "java", "java.lang.System" );
25+
26+
return this;
27+
}
28+
29+
}

tests/tmp/scribble.cfm

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
<cfscript>
2-
test = new Test();
3-
4-
writeDump( var=getMetadata( test ), top = 5 );
2+
writedump( cgi )
53
</cfscript>

0 commit comments

Comments
 (0)