We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e8f5d7 commit 1309131Copy full SHA for 1309131
wp-react-lib/src/util/index.js
@@ -43,7 +43,7 @@ export const replaceHTMLinks = (html, locale) => {
43
44
let link;
45
// Match both absolute (http/https) and relative WP links in a single pass
46
- let linkRegex = /href\s*=\s*(['"])(https?:\/\/.+?|\/wp\/[^'"\s>]+)\1/ig;
+ let linkRegex = /href\s*=\s*(['"])(https?:\/\/.*?|\/wp\/.*?)\1/ig;
47
48
let newHtml = html
49
while ((link = linkRegex.exec(html)) !== null) {
0 commit comments