mirror of
https://github.com/videojs/video.js.git
synced 2024-12-21 01:39:04 +02:00
fix(menu-item): update regex from 'containsHexCode' function to avoid certain problematic characters
This commit is contained in:
parent
26d9a10042
commit
a506837ade
@ -62,5 +62,5 @@ export const titleCaseEquals = function(str1, str2) {
|
||||
* Whether the string contains a Hex Code
|
||||
*/
|
||||
export const containsHexCode = (string) => {
|
||||
return /\w*(&#x.{2,4};)\w*/.test(string);
|
||||
return /\w*(&#x[0-9a-fA-F]{2,4};)\w*/.test(string);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user