Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Commit

Permalink
fix: we're strong not bold
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Coe committed Apr 20, 2016
1 parent ce0512d commit f3dfaac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -121,7 +121,7 @@ AnnotationPoller.prototype._applyReplacements = function (obj) {
// bold any text in between *foo*.
if (row.text) {
row.text = _this._escape(row.text)
row.text = row.text.replace(/\*(.+)\*/, '<b>$1</b>')
row.text = row.text.replace(/\*(.+)\*/, '<strong>$1</strong>')
}

// escape any HTML in links.
Expand Down
2 changes: 1 addition & 1 deletion test.js
Expand Up @@ -89,7 +89,7 @@ describe('annotation-poller', function () {

var poller = annotationPoller({pollInterval: 50, pkg: pkg})
poller.start(function () {
$('b').text().should.equal('awesome')
$('strong').text().should.equal('awesome')
poller.stop()
return done()
})
Expand Down

0 comments on commit f3dfaac

Please sign in to comment.