File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ function analyzeAndParseResponse (response) {
3333
3434function parseSuccessXML ( xmlString ) {
3535 try {
36- const returnStatement = xmlString . replace ( / \r ? \n | \r / g, '' ) . match ( / < r e t u r n > ( .* ) < \/ r e t u r n > / ) [ 0 ] || ''
36+ const returnStatement = xmlString . replace ( / \r ? \n | \r / g, '' ) . match ( / < r e t u r n > ( .* ) < \/ r e t u r n > / ) [ 0 ] ?? ''
3737 const cleanReturnStatement = returnStatement . replace ( '<return>' , '' ) . replace ( '</return>' , '' )
3838 const parsedReturnStatement = cleanReturnStatement
3939 . split ( / < / )
@@ -53,7 +53,7 @@ function parseSuccessXML (xmlString) {
5353
5454function parseAndextractErrorMessage ( xmlString ) {
5555 try {
56- const returnStatement = xmlString . match ( / < f a u l t s t r i n g > ( .* ) < \/ f a u l t s t r i n g > / ) [ 0 ] || ''
56+ const returnStatement = xmlString . match ( / < f a u l t s t r i n g > ( .* ) < \/ f a u l t s t r i n g > / ) [ 0 ] ?? ''
5757 const cleanReturnStatement = returnStatement . replace ( '<faultstring>' , '' ) . replace ( '</faultstring>' , '' )
5858 return cleanReturnStatement
5959 } catch ( e ) {
You can’t perform that action at this time.
0 commit comments