Merge pull request #4422 from mojodna/valid-hashtag-characters

Allow -,_,+,& as hashtag characters
This commit is contained in:
Bryan Housel
2017-10-09 14:59:26 -04:00
committed by GitHub
+2 -2
View File
@@ -26,9 +26,9 @@ var readOnlyTags = [
/^locale$/
];
// treat all punctuation as hashtag delimiters - #4398
// treat most punctuation (except -, _, +, &) as hashtag delimiters - #4398
// from https://stackoverflow.com/a/25575009
var hashtagRegex = /(#[^\u2000-\u206F\u2E00-\u2E7F\s\\'!"#$%&()*+,\-.\/:;<=>?@\[\]^`{|}~]+)/g;
var hashtagRegex = /(#[^\u2000-\u206F\u2E00-\u2E7F\s\\'!"#$%()*,.\/:;<=>?@\[\]^`{|}~]+)/g;
export function uiCommit(context) {