Skip to content

Commit 573fde4

Browse files
authored
Update language.php
Revert to $content
1 parent a82597e commit 573fde4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

language/language.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
// Regex to match a Cloud Storage path as the first argument
169169
// e.g "gs://my-bucket/file_with_text.txt"
170170
if (preg_match('/^gs:\/\/([a-z0-9\._\-]+)\/(\S+)$/', $content, $matches)) {
171-
analyze_sentiment_from_file($matches[0], $projectId);
171+
analyze_sentiment_from_file($content, $projectId);
172172
} else {
173173
analyze_sentiment($content, $projectId);
174174
}

0 commit comments

Comments
 (0)