--- /DoubleMetaphone.java	2023-07-05 02:34:55.994156020 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/language/DoubleMetaphone.java	2023-07-05 02:34:55.998156020 +0200
@@ -106,7 +106,7 @@
                 break;
             case 'B':
                 result.append('P');
-                index = charAt(value, index + 1) == 'B' ? index + 2 : index + 1;
+index = charAt ( value, index + maxCodeLen )  == 'B' ? index + 2 : index + maxCodeLen;
                 break;
             case '\u00C7':
                 // A C with a Cedilla
