Skip to content

Commit

Permalink
Using first the argument value, then inner HTML
Browse files Browse the repository at this point in the history
May fix rubenv#146 (not sure).
  • Loading branch information
karelbilek authored and Nicolas Brisac committed Oct 3, 2016
1 parent 1c7fb2e commit c5c705c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/extract.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ var Extractor = (function () {
if (possibleAttributes.indexOf(attr) > -1) {
var attrValue = extracted[attr];
str = node.html(); // this shouldn't be necessary, but it is
self.addString(reference(n.startIndex), str || getAttr(attr) || '', attrValue.plural, attrValue.extractedComment, attrValue.context);
self.addString(reference(n.startIndex), getAttr(attr) || str || '', attrValue.plural, attrValue.extractedComment, attrValue.context);
} else if (matches = self.noDelimRegex.exec(getAttr(attr))) {
str = matches[2].replace(/\\\'/g, '\'');
self.addString(reference(n.startIndex), str);
Expand Down

0 comments on commit c5c705c

Please sign in to comment.