@@ -44,19 +44,22 @@ function transformFacetFilter(filter: string): string {
4444 * @returns {string }
4545 */
4646function transformNumericFilter ( filter : string ) : string {
47- const splitNumericFilter = ( ) :[ string , string , string ] => {
48- const attributeMatch = filter . match ( / ^ ( [ ^ < ! > : = ] * ) ( [ < ! > : = ] + ) ( .* ) $ / ) ;
47+ const splitNumericFilter = ( ) : [ string , string , string ] => {
48+ const attributeMatch = filter . match ( / ^ ( [ ^ < ! > : = ] * ) ( [ < ! > : = ] + ) ( .* ) $ / )
4949
5050 if ( attributeMatch ) {
51- const [ attribute , dirtyOperator , valueEnd ] = attributeMatch . slice ( 1 ) ;
52- const operatorMatch = dirtyOperator . match ( / ^ ( [ < ! > ] ? = | < | > | : ) { 1 } ( .* ) / ) || [ "" , "" ]
53- const [ operator , valueStart ] = operatorMatch . slice ( 1 ) ;
54- const cleanedValue = valueStart + valueEnd ;
55-
56- return [ attribute , operator , cleanedValue ] ;
51+ const [ attribute , dirtyOperator , valueEnd ] = attributeMatch . slice ( 1 )
52+ const operatorMatch = dirtyOperator . match ( / ^ ( [ < ! > ] ? = | < | > | : ) { 1 } ( .* ) / ) || [
53+ '' ,
54+ '' ,
55+ ]
56+ const [ operator , valueStart ] = operatorMatch . slice ( 1 )
57+ const cleanedValue = valueStart + valueEnd
58+
59+ return [ attribute , operator , cleanedValue ]
5760 }
5861
59- return [ filter , "" , "" ] ;
62+ return [ filter , '' , '' ]
6063 }
6164
6265 const [ attribute , operator , value ] = splitNumericFilter ( )
0 commit comments