fix parsing regex
This commit is contained in:
parent
cbca8d4337
commit
da3582fb1e
@ -179,7 +179,7 @@ sub backupToStorage_Initialize {
|
|||||||
],
|
],
|
||||||
"release_status": "devepolment",
|
"release_status": "devepolment",
|
||||||
"license": "GPL_2",
|
"license": "GPL_2",
|
||||||
"version": "v1.2.1",
|
"version": "v1.2.2",
|
||||||
"author": [
|
"author": [
|
||||||
"Marko Oldenburg <fhemsupport@cooltux.net>"
|
"Marko Oldenburg <fhemsupport@cooltux.net>"
|
||||||
],
|
],
|
||||||
|
@ -497,11 +497,11 @@ sub FileUpload {
|
|||||||
if ( $subprocess->{loglevel} > 4 );
|
if ( $subprocess->{loglevel} > 4 );
|
||||||
|
|
||||||
|
|
||||||
if ( $returnString =~ /100\s[0-9].*\s100\s[0-9].*/m
|
if ( $returnString =~ /100\s\s?[0-9].*\s100\s\s?[0-9].*/m
|
||||||
and $returnString =~ /\s\s<o:hint xmlns:o="o:">(.*)<\/o:hint>/m ) {
|
and $returnString =~ /\s\s<o:hint xmlns:o="o:">(.*)<\/o:hint>/m ) {
|
||||||
$response->{ncUpload} = $1;
|
$response->{ncUpload} = $1;
|
||||||
}
|
}
|
||||||
elsif ( $returnString =~ /100\s[0-9].*\s100\s[0-9].*/m ) {
|
elsif ( $returnString =~ /100\s\s?[0-9].*\s100\s\s?[0-9].*/m ) {
|
||||||
$response->{ncUpload} = 'upload successfully';
|
$response->{ncUpload} = 'upload successfully';
|
||||||
}
|
}
|
||||||
elsif ( $returnString =~ /(curl:\s.*)/ ){
|
elsif ( $returnString =~ /(curl:\s.*)/ ){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user