Skip to content

Commit

Permalink
fix regex and typo
Browse files Browse the repository at this point in the history
  • Loading branch information
thesofakillers committed Nov 18, 2019
1 parent fc8dae7 commit d6d8276
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GPTrueOrFalse/src/content/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function evaluateSelection() {
// evaluate
fetch(
"https://huggingface.co/openai-detector/?" +
encodeURI(text.replace(/[\r\n]+/g, ""))
encodeURI(text.replace(/[\r\n]+/g, " "))
)
.then(response => response.json())
.then(json => {
Expand Down
2 changes: 1 addition & 1 deletion GPTrueOrFalse/src/popup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ window.onload = () => {
});
})
.then(res => {
// Activate or deactivate button dependng on number of words
// Activate or deactivate button depending on number of words
let selected_words = res.token_number;
if (selected_words >= 50) {
return activateButton("evaluateSelectedText");
Expand Down

0 comments on commit d6d8276

Please sign in to comment.