diff --git a/modules/es/views/es.HeadingView.js b/modules/es/views/es.HeadingView.js
index <HASH>..<HASH> 100644
--- a/modules/es/views/es.HeadingView.js
+++ b/modules/es/views/es.HeadingView.js
@@ -27,7 +27,7 @@ es.HeadingView.prototype.setClasses = function() {
 		level = this.model.getElementAttribute( 'level' );
 	this.$
 		// Remove any existing level classes
-		.attr( 'class', classes.replace( /es-headingView-level[0-9]/, '' ) )
+		.attr( 'class', classes.replace( /es-headingView-level[0-9]+/, '' ) )
 		// Add a new level class
 		.addClass( 'es-headingView-level' + level );
 };
Made regex less specific, so it catches levels that are not officially supported, but also shouldn't get stuck in the dom if for some reason they get added at some point.