From 4c18dfd22c14d77c7b92d690e7b4a0dfd5041bc6 Mon Sep 17 00:00:00 2001 From: roberto-naharro Date: Fri, 28 Sep 2018 10:03:40 +0200 Subject: [PATCH] parseContent: support multiple classes definition --- lib/vtt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vtt.js b/lib/vtt.js index 66ab23f..7056728 100644 --- a/lib/vtt.js +++ b/lib/vtt.js @@ -425,7 +425,7 @@ } // Set the class list (as a list of classes, separated by space). if (m[2]) { - node.className = m[2].substr(1).replace('.', ' '); + node.className = m[2].substr(1).replace(/\./g, ' '); } // Append the node to the current node, and enter the scope of the new // node.