Skip to content

Commit

Permalink
fixed #9 and #11 parsing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
squallstar committed Dec 11, 2015
1 parent 3bb5c1c commit 15e558b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/answer.js
Expand Up @@ -55,5 +55,5 @@ Meteor.methods({
// Removes html tags, parenthesis and their content (e.g. furigana)
// and returns all to lowercase
function cleanupAnswer (str) {
return str.replace(/(\(.+\))|(<([^>]+)>)|[\.,。 ]/ig, '').toLowerCase();
return str.replace(/(\([^(]+\))|(<([^>]+)>)|[\.,。]/ig, '').toLowerCase();
}

0 comments on commit 15e558b

Please sign in to comment.