react-text-to-speech
Advanced tools
Comparing version 0.8.12 to 0.8.13
import { isValidElement } from "react"; | ||
export const splitElement = (element) => element.split(/\b/); | ||
export const splitElement = (element) => element.split(/(\b|[^\w\s])/).filter(Boolean); | ||
export function JSXToText(element) { | ||
@@ -4,0 +4,0 @@ if (isValidElement(element)) { |
{ | ||
"name": "react-text-to-speech", | ||
"version": "0.8.12", | ||
"version": "0.8.13", | ||
"description": "An easy to use react component for the Web Speech API.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
23170