From 471b0c9f668b1f7472d0fc310be0adefc6ddd825 Mon Sep 17 00:00:00 2001 From: aude Date: Wed, 25 Jun 2014 10:40:53 +0200 Subject: [PATCH] Fix rtl flipping in jquery.ui.suggester.js --- lib/jquery.ui/jquery.ui.suggester.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jquery.ui/jquery.ui.suggester.js b/lib/jquery.ui/jquery.ui.suggester.js index 46059920..ca9e3a53 100644 --- a/lib/jquery.ui/jquery.ui.suggester.js +++ b/lib/jquery.ui/jquery.ui.suggester.js @@ -582,7 +582,7 @@ */ function flipPosition( position ) { function flipOrientation( orientation ) { - if( /right/i.match( orientation ) ) { + if( /right/i.test( orientation ) ) { return orientation.replace( /right/i, 'left' ); } else { return orientation.replace( /left/i, 'right' );