Skip to content

Commit

Permalink
Fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
greatghoul committed May 28, 2016
1 parent 0bc6fd5 commit b30288a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion src/js/contentscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function toggleLinkInspectMode(flag) {

// Inspect translation works only on word
function canTranslate(text) {
return /^[a-z]+(\'|\'s)?$/i.test(text);S
return /^[a-z]+(\'|\'s)?$/i.test(text);
}

function selectionHandler(evt) {
Expand Down
5 changes: 0 additions & 5 deletions src/js/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ function translateHanlder(message, sender, sendResponse) {
translator.translate(message.text, sendResponse);
}

// Inspect translation works only on word
function canTranslate(text) {
return /^[a-z]+(\'|\'s)?$/i.test(text);
}

// Save current selection to localStorage
function selectionHandler(message, sender, sendResponse) {
currentText(message.text);
Expand Down

0 comments on commit b30288a

Please sign in to comment.