Piotrek Koszuliński 8 anni fa
parent
commit
55d0007cca

+ 2 - 2
packages/ckeditor5-engine/src/model/documentselection.js

@@ -392,14 +392,14 @@ export default class DocumentSelection extends Selection {
 	}
 
 	/**
-	 * Checks whether given attribute key is an attribute stored on an element.
+	 * Checks whether the given attribute key is an attribute stored on an element.
 	 *
 	 * @protected
 	 * @param {String} key
 	 * @returns {Boolean}
 	 */
 	static _isStoreAttributeKey( key ) {
-		return key.indexOf( storePrefix ) == 0;
+		return key.startsWith( storePrefix );
 	}
 
 	/**