Skip to content

Commit 9311985

Browse files
authored
Fix #38 (#40)
1 parent 728bfaa commit 9311985

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ import styles from './style.scss';
5353
const options = mergeObjects(CONFIG, vm.config['flexible-alerts'] || vm.config.flexibleAlerts);
5454

5555
const findSetting = function findAlertSetting(input, key, fallback, callback) {
56-
const match = (input || '').match(new RegExp(`${key}:(([\\s\\w\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF-]*))`));
56+
const match = (input || '').match(new RegExp(`${key}:(([\\u002E\\s\\w\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF-]*))`));
5757

5858
if (!match) {
5959
return callback ? callback(fallback) : fallback;
@@ -63,7 +63,7 @@ import styles from './style.scss';
6363
};
6464

6565
hook.afterEach(function (html, next) {
66-
const modifiedHtml = html.replace(/<\s*blockquote[^>]*>[\s]+?(?:<p>)?\[!(\w*)((?:\|[\w*:[\s\w\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF-]*)*?)\]([\s\S]*?)(?:<\/p>)?<\s*\/\s*blockquote>/g, function (match, key, settings, value) {
66+
const modifiedHtml = html.replace(/<\s*blockquote[^>]*>[\s]+?(?:<p>)?\[!(\w*)((?:\|[\w*:[\u002E\s\w\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF-]*)*?)\]([\s\S]*?)(?:<\/p>)?<\s*\/\s*blockquote>/g, function (match, key, settings, value) {
6767

6868
if (!options[key.toLowerCase()] && options.typeMappings[key.toLowerCase()]) {
6969
key = options.typeMappings[key.toLowerCase()];

0 commit comments

Comments
 (0)