Possible closebracket bug or misunderstanding

Why do some of these quotes insert an additional quote and some do not?

typebracket

Here is the code:

Codemirror Try link

import { EditorView} from "codemirror"

import {
  closeBrackets
} from '@codemirror/autocomplete'

new EditorView({
  doc: " 5 % { a <  ",
  extensions: [closeBrackets()],
  parent: document.body
})

For quotes (or other ‘brackets’ where the opening and closing character are the same) is looks at the context around the cursor to determine whether to add a closing character or not. See also CloseBracketsConfig.before.

Ah perfect! My apologies for missing the documentation! Thanks!