Skip to content

Commit

Permalink
Merge pull request #12607 from hiroshisuga/patch-35
Browse files Browse the repository at this point in the history
Remove linefeed for polling option
  • Loading branch information
antobinary committed Jul 2, 2021
2 parents 2d0e31c + 08a87a7 commit 1b8fea8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bigbluebutton-html5/imports/ui/components/poll/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,14 @@ const getPollResultString = (pollResultData, intl) => {
const matchYesNoPoll = (yesValue, noValue, contentString) => {
const ynPollString = `(${yesValue}\\s*\\/\\s*${noValue})|(${noValue}\\s*\\/\\s*${yesValue})`;
const ynOptionsRegex = new RegExp(ynPollString, 'gi');
const ynPoll = contentString.match(ynOptionsRegex) || [];
const ynPoll = contentString.replace(/\n/g,'').match(ynOptionsRegex) || [];
return ynPoll;
}

const matchYesNoAbstentionPoll = (yesValue, noValue, abstentionValue, contentString) => {
const ynaPollString = `(${yesValue}\\s*\\/\\s*${noValue}\\s*\\/\\s*${abstentionValue})|(${yesValue}\\s*\\/\\s*${abstentionValue}\\s*\\/\\s*${noValue})|(${abstentionValue}\\s*\\/\\s*${yesValue}\\s*\\/\\s*${noValue})|(${abstentionValue}\\s*\\/\\s*${noValue}\\s*\\/\\s*${yesValue})|(${noValue}\\s*\\/\\s*${yesValue}\\s*\\/\\s*${abstentionValue})|(${noValue}\\s*\\/\\s*${abstentionValue}\\s*\\/\\s*${yesValue})`;
const ynaOptionsRegex = new RegExp(ynaPollString, 'gi');
const ynaPoll = contentString.match(ynaOptionsRegex) || [];
const ynaPoll = contentString.replace(/\n/g,'').match(ynaOptionsRegex) || [];
return ynaPoll;
}

Expand Down

0 comments on commit 1b8fea8

Please sign in to comment.