diff --git a/tests/test_bootstrap_button.py b/tests/test_bootstrap_button.py
index 9fa2b64a..1567d22f 100644
--- a/tests/test_bootstrap_button.py
+++ b/tests/test_bootstrap_button.py
@@ -101,3 +101,16 @@ def test_button_hyphenate_attributes(self):
self.render("{% bootstrap_button 'button' href='#' data_foo='bar' hx_xyz='abc' %}"),
'button',
)
+
+ # Custom: None
+ with self.settings(BOOTSTRAP5={"hyphenate_attribute_prefixes": None}):
+ self.assertHTMLEqual(
+ self.render("{% bootstrap_button 'button' href='#' data_foo='bar' hx_xyz='abc' %}"),
+ 'button',
+ )
+
+ # Edge case: attribute name starts with prefix but prefix is not followed by underscore
+ self.assertHTMLEqual(
+ self.render("{% bootstrap_button 'button' href='#' databar_foo='bar' %}"),
+ 'button',
+ )